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

What is the output of following program ?

int
main()
{
int x = 5;
printf("%d %d %d\n", x, x << 2, x >> 2);
}

Answer Posted / krishna deep sharma

4,4,1
coz we shift the bit as 5=101 now shift two bit to right as
101>>2=001
now
2<<001=100
noe x=4
printf execute from right to left so ans is 4,4,1

Is This Answer Correct ?    11 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array of structure in c programming?

1328


What is hungarian notation? Is it worthwhile?

1272


What is nested structure with example?

1134


What are the different file extensions involved when programming in C?

1341


How do you print an address?

1325


List out few of the applications that make use of Multilinked Structures?

2259


Why is c called c not d or e?

1144


What is the use of sizeof?

1064


Lists the benefits of c programming language?

1203


Where we use clrscr in c?

1186


Can a pointer be null?

1079


diff between exptected result and requirement?

2113


Wt are the Buses in C Language

3262


What would be an example of a structure analogous to structure c?

1048


Explain what is the concatenation operator?

1230