c言語printf関数
c言語 2015年2月20日 コメントはまだありませんprintf()とは、標準入出力関数で、画面に書式通りに出力させる為の関数です。
#include<stdio.h>
int main(void){
printf("HELLO WORLD");
return 0;
}
HELLO WORLD
#include<stdio.h>
int main(void){
printf("1+3は%d",4);
return 0;
}
1+3は4
#include<stdio.h>
int main(void){
char str="こんにちは!!!";
printf("%s",str);
return 0;
}
こんにちは!!!
#include<stdio.h>
int main(void){
char str="おはよう";
printf("%s",&str[0]);
return 0;
}
おはよう
Leave a comment