MODEL 01:
C hello world example
#include <stdio.h>
int main()
{
printf("Hello world\n");
return 0;
}
MODEL 2:
We may store "hello world" in a character array and then print it.
#include <stdio.h>
int main()
{
char string[] = "Hello World";
printf("%s\n", string);
return 0;
}
Output of program:
Hello World
0 comments:
Post a Comment