Notes / C / Introduction

Introduction to C — Revision Notes

A quick-reference cheat sheet: definition, syntax, example, common mistakes and an interview tip.

beginner 📖 2 min revision

Definition

📌 Introduction C is a general-purpose, compiled programming language created in 1972 by Dennis Ritchie at Bell Labs.

Syntax

syntax
#include <stdio.h>

int main() {
    // your code here
    return 0;
}

Example

c
#include <stdio.h>

int main() {
    printf("Hello, World!\n");
    return 0;
}

Output

outputHello, World!

Important Points

Common Mistakes

Interview Tip

🎯 Before your interview Interviewers often ask "is C compiled or interpreted?" — C source is compiled directly to native machine code, which is a big part of why it runs fast.
Back to notes Read full lesson →