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
What do mean by network ?
Why static is used in c?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What is calloc() function?
What is the scope of an external variable in c?
What is a lookup table in c?
What is the difference between malloc() and calloc() function in c language?
Where does the name "C" come from, anyway?
List a few unconditional control statement in c.
.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; }
What is openmp in c?
Differentiate between Macro and ordinary definition.
What is the purpose of type declarations?
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?
What are categories used for in c?