Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / sandeep kumar

Both shift operator has same precedence but associativity left to right so first calculate b>>2=0 then calculate b<<4=32 then add the both result

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best organizational structure?

1170


plz let me know how to become a telecom protocol tester. thank you.

2239


Tell me what is the purpose of 'register' keyword in c language?

1039


Does * p ++ increment p or what it points to?

1190


What is void main () in c?

1250


What are called c variables?

1127


What is an endless loop?

1322


What is return in c programming?

1021


what are bit fields? What is the use of bit fields in a structure declaration?

2200


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4750


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1192


swap 2 numbers without using third variable?

1177


Tell us the use of fflush() function in c language?

1201


How does pointer work in c?

1194


What is the code in while loop that returns the output of given code?

2071