C Hello World program
codeaft.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
codeaft@codeaft:~$ gcc codeaft.c
codeaft@codeaft:~$ ./a.out Hello, World! Hello, World! Hello, World! Hello, World! codeaft@codeaft:~$
Comments and Reactions