※スタイルシート未対応ブラウザではレイアウトを正確に再現できません。
  > | advanced by | contents  | that returns in <    
                   < [modosusu] > Color magazine monochrome light and shade   font predetermined, Gothic Ming-style type longhand   size Konaka large   standard  


  Exercise 3   

  1. ..clause 1..: Basic knowledge
  2. ..clause 2..: Program readout
  3. Memo
  4. ..clause 4..: Basic knowledge(example solution)
  5. ..clause 5..: Program readout(example solution)
  6. Memo(example solution)

[1] Basic knowledge


[  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.

[  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

It returns to contents.


[2] Program readout


[  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

It returns to contents.


Memo


[  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
Example solution

It returns to contents.


[4] Basic knowledge(example solution)


[  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.

[  1-3  ]
Escape sequence
Problem

It returns to contents.


[5] Program readout(example solution)


[  2-1  ]

The pen is mightier
than the sword
- Because the function ends by return, the following are not executed.
Problem

It returns to contents.


Memo(example solution)


[  3-1  ]
 
#include <stdio.h> 

int main(void)  
{
	printf("Intel\t: Pentium4\n");  
	printf("AMD\t: Athlon64\n");  
	return 0;
}
- It is easier to use \t though you may not use \t, and arrange it in space.
- As for changing line \n of the end of sentence, even the expert notes it is easy to forget.
Problem

It returns to contents.


< - It is advanced -> | in | head that returns  to returning  next |.