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 size of structure pointer in c?

1015


what is the role you expect in software industry?

2082


What is the difference between memcpy and memmove?

968


What is wrong with this program statement? void = 10;

1203


What are dangling pointers? How are dangling pointers different from memory leaks?

1227


What is fflush() function?

1074


Can variables be declared anywhere in c?

1032


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

1092


What is the process of writing the null pointer?

979


Does free set pointer to null?

949


What is the use of pragma in embedded c?

998


How can I do serial ("comm") port I/O?

1128


Explain a file operation in C with an example.

1052


What is #define in c?

990


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1052