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 functions are used for dynamic memory allocation in c language?

0 Answers  


How to use c/c++ code in JAVA

10 Answers   CDAC, IBM, Satyam, Scope International,


What is the difference between c &c++?

0 Answers  


what is constant pointer?

3 Answers  


array of pointer pointer to array pointer to pointer

1 Answers   MAHINDRA,






44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?

3 Answers  


a linear linked list such that the link field of its last node points to the first node instead of containing NULL a) linked list b) circular linked list c) sequential linked list d) none

0 Answers  


Do you know the purpose of 'register' keyword?

0 Answers  


Write program to remove duplicate in an array?

0 Answers  


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

0 Answers  


Write a code to generate divisors of an integer?

0 Answers   Ericsson,


What is difference between union All statement and Union?

0 Answers  


Categories