• Working Time
  • 10:00AM - 09:00PM
  • Get In Touch
  • +91 72041 84033

Programming For Problem Solving Notes Pdf May 2026

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

| Type | Size (approx) | Format Specifier | |------|--------------|------------------| | int | 2/4 bytes | %d | | float| 4 bytes | %f | | char | 1 byte | %c | | double| 8 bytes | %lf |

if (condition) // code; else if (cond2) // code; else // code; programming for problem solving notes pdf

return_type function_name(parameters) // body return value;

Machine (1GL) → Assembly (2GL) → High-level (3GL: C, Python) → 4GL, 5GL. int arr[5] = 1,2,3,4,5; arr[0] = 10; //

switch(expression) case 1: ... break; case 2: ... break; default: ... break;

#include <stdio.h> // preprocessor directive int main() // main function int arr[5] = 1

// variable declarations // statements return 0;