C : Print first code - Hallo World
So this is my first C code.
Here
- #include<stdio.h> - It is standard input output . header file. It is a library.
- int main () - this is the function that starts code.
- printf("Hallo World?\n"); - this is the print function.
- hallo.c -o (name) - this is how to name a file.
- // and /*.......*/ get us comments.
- ; is most imp to remember.
To run it write in new terminal:
gcc example.c or gcc e (tab) Enter
a (tab) Enter
For give new name - gcc example.c -o newname.c
n(tab)
#include<stdio.h>
int main ()
{
printf("Hallo World?\n");
return 0;
}
// hallo.c -o (name)
Comments
Post a Comment