C Hello World program
kw.c
#include <stdio.h>
int main()
{
    printf("Hello, World!\n");

    char *str = "Hello, World!\n";
    printf("%s", str);

    puts("Hello, World!\n");

    printf("%c%c%c%c%c%c%c%c%c%c%c\n", 72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100);
    return 0;
}
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out Hello, World! Hello, World! Hello, World! Hello, World! kodingwindow@kw:~$
Advertisement