A simple example of C application programming on linux

A simple example of C application programming on linux

Programming on Linux is similar to that on Windows IDE, except that you cannot use the system functions of Windows, you can use the linux system functions, you need to compile with the gcc command to compile, and the execution of the above is also an input command./

#include <stdio.h>
int main()
{
printf(“hello linux\n”);
return 0;
}

Compile
Open the terminal and enter gcc main.c -o hello

Execute
Enter ./hello in the terminal

Guess you like

Origin blog.csdn.net/u010835747/article/details/105141057