C Language Syntax
← Back to Blogs
1 min read 106 words Tamim Iqbal

C Language Syntax

C programmingbasics of CC syntaxdata typesvariablesinput outputoperatorsconditionsloopsfunctionsarrayspointersstructuresC fundamentalssystem programmingC exam prep

Mastering C is the foundation of programming and system-level thinking. Here’s a clean, exam-friendly snapshot

🔹 Basic Structure

#include <stdio.h>
int main() { return 0; }

🔹 Data Types

int, float, char, double

🔹 Variables

int x = 10;

🔹 Input / Output

printf("Hello");
scanf("%d", &x);

🔹 Operators
Arithmetic | Relational | Logical

🔹 Conditions

if() {} else {}
switch() {}

🔹 Loops

for() {}
while() {}
do-while();

🔹 Functions

int add(int a, int b);

🔹 Arrays

int a[5];

🔹 Pointers

int *p;

🔹 Structures

struct Student { int id; };

C = Logic + Memory + Performance
Perfect for CSE fundamentals, exams, and interviews.