Programming For Problem Solving Notes Pdf May 2026

scanf("%d", &x); // read printf("Value: %d", x); // print Arithmetic: +, -, *, /, % Relational: ==, !=, <, >, <=, >= Logical: && (AND), || (OR), ! (NOT) Assignment: =, +=, -=, etc. Increment/Decrement: ++, -- (prefix/postfix)

switch(expression) case 1: ... break; case 2: ... break; default: ... break; programming for problem solving notes pdf

Source code (.c) → Preprocessor → Compiler → Object code → Linker → Executable (.exe) scanf("%d", &x); // read printf("Value: %d", x); //

for loop: for(init; condition; update) while loop: while(condition) do-while loop: do while(condition); → executes at least once. // read printf("Value: %d"

int arr[5] = 1,2,3,4,5; arr[0] = 10; // index 0-based

if (condition) // code; else if (cond2) // code; else // code;