Skip to content

Commit

Permalink
Create hello.c
Browse files Browse the repository at this point in the history
  • Loading branch information
HWANGMINSEUNG authored Mar 15, 2023
1 parent afe944d commit efab399
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hello.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
+main()

This comment has been minimized.

Copy link
@HWANGMINSEUNG

HWANGMINSEUNG Mar 15, 2023

Author

main 앞에는 기본으로 int 타입 선언이 필요
int main()

+{
+ printf("Hello World\n")};

This comment has been minimized.

Copy link
@HWANGMINSEUNG

HWANGMINSEUNG Mar 15, 2023

Author

printf()를 사용하면 #include <stdio.h>가 필요

+}

This comment has been minimized.

Copy link
@HWANGMINSEUNG

HWANGMINSEUNG Mar 15, 2023

Author

int main()를 썼다면 integer를 return
return 0; 추가!!

0 comments on commit efab399

Please sign in to comment.