Introduction to C Programming

- Developed by Dennis Ritchie at Bell Labs in the early 1970s.
- Known for its efficiency, simplicity, and low-level system access.
- Follows a procedural programming paradigm.
- Focuses on functions and structured programming.
- Highly portable language, allowing programs written in C to run on different platforms with minimal modifications.
- C uses a syntax that includes variables, data types, operators, and control structures (loops and conditionals).
- To run C/C++ in your system you need two things:
- MinGW compiler: Search for “mingw compiler downloader” in Google, install it, and set the environment variable by giving the compiler path.
- Code Editor/IDE: Download VS Code. (Avoid DevC++/Turbo C as they are discontinued.)
- Create a file in your editor with a
.c
extension. - Install Code Runner Plugin in VS Code to easily run code in the IDE, or use the terminal for manual compilation.
Hello World in C
Section titled “Hello World in C”#include <stdio.h>
int main() { printf("Hello, World!\n"); return 0;}