What is the output from the following program? Int type variable assignment. - C Data Type

C examples for Data Type:int

Description

What is the output from the following program? Int type variable assignment.

Demo Code

#include <stdio.h> 
int main(void) 
{ 
     int a, b; //from www. j  a  v  a 2  s.  c om
 
     a = 5; 
     b = 2;    /* line 7 */ 
     b = a;    /* line 8 */ 
     a = b;    /* line 9 */ 
     printf("%d %d\n", b, a); 
     return 0; 
}

Result


Related Tutorials