Skip to content

Commit c5ed25f

Browse files
authored
Merge pull request hacktoberfest17#1 from 3009aksingh/3009aksingh-patch-1
hello world using strings
2 parents 599f741 + 527432c commit c5ed25f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

hello_world/hello_world.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <stdio.h>
2+
3+
int main()
4+
{
5+
char s1[] = "HELLO WORLD";
6+
char s2[] = {'H','e','l','l','o',' ','w','o','r','l','d','\0'};
7+
8+
printf("%s %s", s1, s2);
9+
10+
return 0;
11+
}

0 commit comments

Comments
 (0)