こんにちは!!

Linux大学プログラミング学部C言語学科の
Linuxプログラミング牛です。

本日のテーマは「文字列と数値の表示」です。


前回は「Hello」という文字列を表示させました。
今回は、「12345」という文字列と数値を同時に表示させたいと思います。


# vi test2.c
--------------------------------

#include <stdio.h>

int main()
{
printf("12345\n");
printf("%d\n",12345);

return 0;
}


------------------------------


# gcc -o test2 test2.c


#./test2
12345←文字列
12345←数値