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


int x=5;
printf("%d%d%d",x,x<<2,x>>2);

Answers were Sorted based on User's Feedback



int x=5; printf("%d%d%d",x,x<<2,x>>2);..

Answer / sunil gupta

x=5
x<<2=20
x>>2=1

Is This Answer Correct ?    11 Yes 1 No

int x=5; printf("%d%d%d",x,x<<2,x>>2);..

Answer / jitendra nath das

Ans will be

x=5
x<<2=20
x>>2=1

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

void main() { int a=1; while(a++<=1) while(a++<=2); }

4 Answers   HCL,


What is a void pointer? When is a void pointer used?

0 Answers   Aspire, Infogain,


Differentiate between full, complete & perfect binary trees.

0 Answers  


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side? Upload a C program to demonstrate the behaviour of the game.

2 Answers  


void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?

2 Answers   TCS,


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

0 Answers   Wilco,


What is the output of the below program and how it is? void main() { static int var=5; printf("%d",var--); if(var) main(); }

8 Answers   MindFire, TCS, Tech Mahindra,


When should the const modifier be used?

0 Answers  


Program to trim a given character from a string.

5 Answers   NetApp,


If errno contains a nonzero number, is there an error?

0 Answers  


related proverb of "dont count your chicken before it hatches"

1 Answers  


Are enumerations really portable?

0 Answers  


Categories