A summary of yesterday's session and a list of the online IDEs I talked about. A recordiing of the workshop is available here on YouTube.
A temporary environment for some simple coding.
An advanced environment for development and learning.
An online environment for developing applications.
An online IDE to test competitive programming code.
Follow the below steps to compile and run a simple C programme in any of the above IDEs:
- Follow the link and copy the source code of this C programme.
#include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }
- Create a new file named
hello.c
in your online IDE and paste the code. - Use any of the below-mentioned commands to compile and run your programme using GCC:
- Default compilation to
a.out
.- Compile:
gcc hello.c
- Run:
./a.out
- Compile:
- Customizing the name of the compiled executable.
- Compile:
gcc -o hello hello.c
- Run:
./hello
- Compile:
- Using GNU Make to compile.
- Compile:
make hello
- Run:
./hello
- Compile:
- Default compilation to
Now, try the same programme, but instead of Hello, World!
, enter your name in the code. Happy learning!