- ..clause 1..: Basic knowledge
- ..clause 2..: Program readout
- Memo
- ..clause 4..: Basic knowledge(example solution)
- ..clause 5..: Program readout(example solution)
- Memo(example solution)
[ 1-1 ]
What function do you use to display the character string on the screen by C language?
[ 1-2 ]
It is necessary to pass the compiler the manual to use the above-mentioned function.
Answer the file name of the quasi-instruction for that and the passed manual.
Example solution
[ 1-3 ]
Write the sign to change line when the character string is displayed by the above-mentioned function.
What is called the sign whole?
Example solution
[ 2-1 ]
How are you displayed when the following program is executed?
#include <stdio.h> int main(void) { printf("The pen is mightier\n than the sword\n"); return 0; printf("Time is money\n"); }
Example solution
[ 3-1 ]
Make the program displayed on the screen as follows.
If the head of the second character is arranged, a blank number is not asked.
Intel : Pentium4
AMD : Athlon64
[ 1-1 ]
Printf function
- The printf function is basic like other puts etc. though it is variously.
[ 1-2 ]
Quasi-instruction # include
File name Stdio.h
- #Include < stdio.h > is a correct answer.
Problem
[ 1-3 ]
Escape sequence
Problem
[ 2-1 ]
- Because the function ends by return, the following are not executed.
The pen is mightier
than the sword
Problem
[ 3-1 ]
- It is easier to use \t though you may not use \t, and arrange it in space.#include <stdio.h> int main(void) { printf("Intel\t: Pentium4\n"); printf("AMD\t: Athlon64\n"); return 0; }
- As for changing line \n of the end of sentence, even the expert notes it is easy to forget.