I wrote some simple program
int main(){
printf("hello word!");
return 0;
}
I compiled it using gcc -o hello hello.c
(no errors)
but when I run it in terminal
using ./hello
I see nothing, why? thanks in advance
Could be the missing newline, so that the output is mangled with the next prompt.
Try:
printf("hello world\n");
this version also uses a more conventional message.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With