I am new to C language but I use Gitpod for other languages. I would like to know how to run this simple "hello world" main.c program from the Gitpod interface step by step?
#include <studio.h>
void main(){
printf("hello")
}
Many thanks !
After fixing the errors you can compile the code with gcc main.c
and run the binary a.out
. Errors as already mentioned:
studio.h
-> stdio.h
...hello")
-> ...hello");
after the printf("hello") you should put;
//like this
printf("hello");
#include <stdio.h>
int main(){
printf("hello");
return 0;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.