main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}

Answers were Sorted based on User's Feedback



main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }..

Answer / shital

ans is :32

Is This Answer Correct ?    24 Yes 1 No

main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }..

Answer / vineetha

tell this answer and mail to this id vachika90@gmail.com

Is This Answer Correct ?    8 Yes 2 No

main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }..

Answer / sanjay bhosale

statement a=b<<a + b>>2;
will be treated as
a=(b<<(a+b))>>2;

and gives output 32.

Is This Answer Correct ?    5 Yes 0 No

main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }..

Answer / a.jayashree

ans is=10;

if its wrong give me right ans to jshree20@gmail.com

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }

3 Answers  


WHAT IS MEANT BY LIFE?

2 Answers  


What is logical error?

1 Answers  


code for bubble sort?

1 Answers  


where do we use volatile keyword?

1 Answers  


how many errors in c explain deply

1 Answers  


write a program to sort the elements in a given array in c language

10 Answers   TCS,


what is the value of b if a=5; b=++a + ++a

31 Answers   Infosys, TCS, Tech Mahindra,


main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }

2 Answers   CSC,


Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986

2 Answers  


main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); }

27 Answers   Advent Global Solutions, CitiGroup, Valeo Lighting Systems India Private Limited, Vishal Transformers, Wipro, Zencer,


Program to write some contents into a file using file operations with proper error messages.

2 Answers  


Categories