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

Write a program to print numbers from 1 to 100 without using loop in c?

638


code for quick sort?

1622


Why are all header files not declared in every c program?

601


What is a memory leak? How to avoid it?

571


What does a function declared as pascal do differently?

607






What are the advantages of the functions?

604


What is 02d in c?

637


What is optimization in c?

566


How can you determine the maximum value that a numeric variable can hold?

639


What are the different file extensions involved when programming in C?

758


Explain the difference between malloc() and calloc() function?

598


What is enumerated data type in c?

623


Is a house a shell structure?

697


What is the use of putchar function?

649


What is the explanation for cyclic nature of data types in c?

642