printf("After swap: a = %d, b = %d\n", a, b); return 0;
// Swapping logic temp = a; a = b; b = temp; introduction to c programming reema thareja
If you’re stepping into the world of programming, C is often the best first step. It’s the mother of many modern languages (C++, Java, Python) and teaches you core concepts like memory management, pointers, and data structures from the ground up. printf("After swap: a = %d, b = %d\n",
#include <stdio.h> int main() int a = 5, b = 10, temp; printf("After swap: a = %d