Class 001 Introduction and Installation
Class 001 Introduction and Installation
What is C?
C is one of the oldest and most powerful programming languages. It was developed in the
early 1970s by Dennis Ritchie at Bell Labs. It’s a procedural language that provides low-
level access to memory and is used in systems programming (like operating systems,
embedded systems).
Computers can only understand machine code – a sequence of 0s and 1s (binary). Human-
readable code (like C) needs to be translated into machine code so that the computer can
execute it.
A compiler is a special program that translates your C code into machine code. Here's how
it works:
• Clang
• Turbo C (old)
• MSVC (Microsoft)
o Open Control Panel > System > Advanced system settings > Environment
Variables.
4. Open Command Prompt and run gcc --version to confirm it's installed.
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
Step-by-step:
4. cd C:\Users\YourName\Desktop
8. hello
Hello, World!
• No syntax highlighting.
• Syntax highlighting
• Autocomplete
• Error detection
Examples:
• Code::Blocks (Free)
• VS Code (Free)
• CLion (Paid)
Author: Md. Ashraful Islam, Lecturer, CSE, BUET
1. Go to https://www.codeblocks.org/downloads/
2. Download the version with mingw-setup (includes compiler). (Direct Download Link)
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
4. Your program will compile and show output in the terminal window.
1. Go to https://code.visualstudio.com/
7. ./main