Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


C Hello World

02 May 2020 » programming
#include <stdio.h>
#include <stdlib.h>


int main() {
    
    
    printf("Hello World\n");
    return 0;
}
gcc hello.c -o hello
./hello
cat > hello.c <<EOF
#include <stdio.h>
#include <stdlib.h>


int main() {
    
    
    printf("Hello World\n");
    return 0;
}
EOF


cat > cmd <<EOF
gcc hello.c -o hello
./hello
EOF

chmod +x cmd