Find the output for the following C programmain(){int x=5;printf("%d %d %dn",x,x<<2,x>>2);}

5; 20; 1

Showing Answers 1 - 12 of 12 Answers

aaditi

  • Mar 22nd, 2017
 

Code
  1. #include < stdio.h >

  2.  

  3. int main(){

  4.  

  5.    int x = 5,y=0;

  6.  

  7.    x += 5;

  8.  

  9.    y= x=+ 3;

  10.  

  11.    printf("%d %d", x,y);

  12.  

  13. }

  Was this answer useful?  Yes

Anil Kumar

  • Jul 12th, 2017
 

3 3

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions