Ex010501**)** main() 함수 [중요 샘플 코드]
// Main.c
int main(void)
{
return 0;
}
Ex010502) printf() 함수 [중요 샘플 코드]
// Main.c
#include <stdio.h>
int main(void)
{
printf("Hello, world!");
return 0;
}
//Main.c
#include <stdio.h>
int main(void)
{
printf("Hello, C");
return 0;
}
Ex010503) 개행하기
// Main.c
#include <stdio.h>
int main(void)
{
printf("Hello\\nworld!");
return 0;
}
//Main.c
#incldue <stdio.h>
int main(void)
{
printf("Hello C\n World\n");
return 0;
}
???Ex010504) 탈출 문자열
// Main.c
#include <stdio.h>
int main(void)
{
printf("She said, \\"We alright!\\"\\n");
printf("And I thought, \\'Um, that's not a big deal.\\'\\n");
printf("Our 1/4 quater profit rose by 10%% and earned \\\\1,000,000,000\\n");
printf("..\\\\Desktop\\\\C\\\\Section01\\\\printf()\\n");
return 0;
}
// Main.c
#include <stdio.h>
int main(void)
{
printf("She said, \\"We alright!\\"\\n");
printf("And I thought, \\'Um, that's not a big deal.\\'\\n");
printf("Our 1/4 quater profit rose by 10%% and earned \\\\1,000,000,000\\n");
printf("..\\\\Desktop\\\\C\\\\Section01\\\\printf()\\n");
return 0;
}
'C' 카테고리의 다른 글
| [내배캠자습]C언어 챕터 1-8 : 자료형 (0) | 2026.03.27 |
|---|---|
| [내배캠자습]C언어 챕터 1-7 : 리터럴 (0) | 2026.03.27 |
| [내배캠자습]C언어 챕터 1-6 : 서식지정자 (0) | 2026.03.27 |
| [내배캠자습]C언어 Ch1-2 Low-Level Language와 High Level Languag (0) | 2026.03.27 |
| [내배캠자습]C 언어 Ch.1-1 코딩이란, (0) | 2026.03.27 |