Variables can interact with each other
#include <stdio.h> int main() //from w w w . j av a 2 s . c o m { int a,b,c; a = 5; b = 7; c = a + b; printf("Variable c=%d\n",c); return(0); }
The value of variable c is assigned the sum of variables a and b.
Then the result is displayed.