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 / 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

write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

2322


What are the different types of control structures?

1007


Explain the difference between structs and unions in c?

982


application attempts to perform an operation?

1936


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1245


Explain what are global variables and explain how do you declare them?

1119


What is structure in c language?

1129


Tell me when would you use a pointer to a function?

1033


Is a house a mass structure?

1069


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1926


What is openmp in c?

988


int i=10; printf("%d %d %d", i, i=20, i);

1578


Why we use stdio h in c?

1002


Which one would you prefer - a macro or a function?

1055


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1141