auto | Declares a local automatic variable | auto int x = 10; |
break | Exits a loop or switch | break; |
case | Defines a case in a switch | case 1: |
char | Declares a character variable | char ch = 'A'; |
const | Declares a constant | const float PI = 3.14; |
continue | Skips the current loop iteration | continue; |
default | Default case in a switch | default: |
do | Starts a do-while loop | do { ... } while(i<5); |
double | Declares a double-precision floating-point variable | double d = 12.56; |
else | Alternative branch of an if | else { ... } |
enum | Declares an enumeration | enum Day {MON,TUE}; |
extern | Declares an external variable | extern int x; |
float | Declares a floating-point variable | float f = 5.5f; |
for | Starts a for loop | for(i=0;i<5;i++) |
goto | Jumps to a labeled statement | goto end; |
if | Conditional statement | if(a>b) |
int | Declares an integer variable | int age = 20; |
long | Declares a long integer | long population; |
register | Requests storage in a CPU register | register int i; |
return | Returns from a function | return 0; |
short | Declares a short integer | short x; |
signed | Declares a signed variable | signed int x; |
sizeof | Returns the size of a type/object | sizeof(int) |
static | Declares a static variable | static int count = 0; |
struct | Declares a structure | struct Student { ... }; |
switch | Multi-way selection statement | switch(choice) |
typedef | Creates a type alias | typedef int Integer; |
union | Declares a union | union Data { int i; float f; }; |
unsigned | Declares an unsigned variable | unsigned int n; |
void | Indicates no type or no return value | void display(); |
volatile | Indicates a value may change unexpectedly | volatile int flag; |
while | Starts a while loop | while(i<10) |