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

5
5>>2=1(0000101=>00000001)
5<<2=20(0000101=>10100)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is return in c programming?

937


Explain function?

1050


what do u mean by Direct access files? then can u explain about Direct Access Files?

2053


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1954


How was c created?

1003


What is indirection in c?

1039


Does sprintf put null character?

1002


Between macros and functions,which is better to use and why?

2144


What is const volatile variable in c?

1004


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3305


What is main return c?

946


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2021


Explain what are the standard predefined macros?

1090


What is typedef?

1350


What are the advantages of c language?

1059