5.3  ‘Ž®§Œä‚Ì•û–@


‘Ž®§Œä•t‚«‚Ì“üo—Í‚ðs‚¤‚½‚ß‚É‚Í‚‚’‚‰‚Ž‚”‚†i jA‚“‚ƒ‚‚Ž‚†i j‚ð—p‚¢‚Ü‚·B

‚‚’‚‰‚Ž‚”‚†i‘Ž®Cˆø”j
‚‚’‚‰‚Ž‚”‚†ŠÖ”‚́A‘Ž®‚É‚æ‚èˆø”’l‚ð•ÏŠ·‚µA•ÒW‚µA•W€o—Í‘•’uiƒfƒBƒXƒvƒŒƒC‚Ȃǁj‚ɏo—Í‚µ‚Ü‚·B‘Ž®‚Ì•ÏŠ·‹L†‚́“‚ÅŽn‚Ü‚è‚Ü‚·B

“‚„ @@ ˆø”i®”j‚ð‚P‚Oi”‚Æ‚µ‚ďo—́B
“‚†@@@@
ˆø”iŽÀ”j‚ð¬”“_•\Œ»‚Ì‚P‚Oi”‚Æ‚µ‚ďo—́B
“‚ƒ@@@
ˆø”‚𕶎š‚Æ‚µ‚ďo—́B
“‚“@@@
ˆø”‚𕶎š—ñ‚Æ‚µ‚ďo—́B

main ( )
{
@@@ int a=123;
@@@ float b=123.456;
@@@ char c='A';
@@@ static char d[ ] = "abc";
@@@ printf("%d,%f,%c,%s\n,a,b,c,d");
}

ƒŽÀsŒ‹‰Ê„
123,123.456,A,abc


‚Ü‚½AˆÈ‰º‚É‚æ‚­Žg‚¤•\Œ»‚ðà–¾‚µ‚Ü‚·B

“‚X‚„ @ @@@@@@‘Ήž‚·‚éˆø”i®”j‚ð‚X•¶Žš•‚ŏo—Í‚·‚éB
@@@@@@@@@@@@@@@
ˆø”‚ª‚XŒ…ˆÈ‰º‚È‚ç‚΍¶‚É‹ó”’‚ð“ü‚ê‰E‹l‚߂ŏo—́B
“|‚X‚„@@@@
‚X•¶Žš•‚ō¶‹l‚߂ŏo—́B
“‚TD‚Q‚„@@@
‚T•¶Žš•‚ŁA¬”“_ˆÈ‰º‚QŒ…‚ŏo—Í

main( )
{
char c='a';
static char b[ ] = "abc";
int i = 1234;
printf("|%c|%s|%d|\n",c,b,i );
printf("|%2c|%5s|%5d|\n",c,b,i);
printf("|%-2c|%-5s|%-5d|\n",c,b,i);
}

ƒŽÀsŒ‹‰Ê„
|a|abc|1234|
| a|@ abc| 1234|
|a |abc@ |1234 |



u‚à‚­‚¶‚ցv