1. Open the terminal input vi hello.c;
2. Press i to enter the edit mode, and typing in vi window hello.c
3. Press ESC to exit editing mode, and enter: wq save and exit vi;
4. Run compiler, input gcc hello.c -o a;
The output ./a.
1. Open the terminal input vi hello.c;
2. Press i to enter the edit mode, and typing in vi window hello.c
3. Press ESC to exit editing mode, and enter: wq save and exit vi;
4. Run compiler, input gcc hello.c -o a;
The output ./a.