C - Variables can interact with each other

Description

Variables can interact with each other

Demo

#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); 
}

Result

The value of variable c is assigned the sum of variables a and b.

Then the result is displayed.

Related Topic