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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do mean by network ?

777


Why static is used in c?

719


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

700


What is calloc() function?

722


What is the scope of an external variable in c?

651






What is a lookup table in c?

721


What is the difference between malloc() and calloc() function in c language?

700


Where does the name "C" come from, anyway?

725


List a few unconditional control statement in c.

652


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2140


What is openmp in c?

699


Differentiate between Macro and ordinary definition.

829


What is the purpose of type declarations?

774


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

752


What are categories used for in c?

686