C Programming Language study is simple, humble and at the same time complicated, too. First we have to check whether C Programming setup file installed or not in our Computer. Perhaps it may be installed or it can even be copied from other Computer. If it is copied, the folder named TC must be in the same DRIVE as in the source Computer, otherwise it will not work properly and will get an error like "stdio.h can't open", because the source and destinations drives are different. Then find the file named "TC.EXE" in the computer and double click on that, then we will get the C Programming interface, ie a window will appear, there we can open new file and write C Programe. After the completion of the programe, just save file as "anyname.c" and then this file has to be Compiled using the keys "Alt+F9" and, if there is no error seen, Run using the keys "Ctrl+F9" then output will be displayed in the Monitor.
Swapping of Two Numbers in C or C Program to Swap Two Numbers or C program to Swap two numbers without using a third variable #include <stdio.h> #include <conio.h> void main() { int x, y, temp; clrscr(); // to clear screen printf("Enter the value of x and y\n"); scanf("%d%d", &x, &y); printf("Before Swapping\nx = %d\ny = %d\n",x,y); temp = x; x = y; y = temp; /* without using temp variable, this can be used let x=4 and y=5 x = x + y ; x=x+y => x=4+5 => x=9 y = x - y ; y=x-y => y=9-5 => y=4 value changed x = x - y ; x=x-y => x=9-4 => x=5 value changed */ printf("After Swapping\nx ...