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


Please Help Members By Posting Answers For Below Questions

Describe wild pointers in c?

636


What is pass by reference in functions?

319


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

603


How can I pad a string to a known length?

608


What are structure members?

590






Why is void main used?

613


What are the types of variables in c?

578


What is the g value paradox?

641


Explain the meaning of keyword 'extern' in a function declaration.

716


What is a macro?

654


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

595


What is the difference between %d and %i?

591


What is function what are the types of function?

553


What are the types of data types and explain?

664


What are nested functions in c?

558