main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}
Answer Posted / vignya
size of integer is 8 bits
a=0000 0100, b=0000 0010;
b>>2 becomes 0000 0000 and b<<a becomes 0010 0000
on whole a= 0010 0000+ 0000 0000=0010 0000 =32
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is difference between function overloading and operator overloading?
What is bin sh c?
What is the use of extern in c?
Define the scope of static variables.
What is an array? What the different types of arrays in c?
Explain how can type-insensitive macros be created?
Why is structure padding done in c?
Explain how do you override a defined macro?
What is graph in c?
Explain the difference between malloc() and calloc() function?
Hai what is the different types of versions and their differences
Explain what is #line used for?
What is the difference between declaring a variable and defining a variable?
Describe the header file and its usage in c programming?
What is selection sort in c?