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

yes , the output will be 32....
<< and >> are bitwise operators... not relational ops..
reason:
<< means left shift operator..
>> means right shift operator..
for example.. if we give 2>>1
binary number for 2 is 0000 0010
the operator is right shift..so 0000 0001
for example.. if we give 2<<1
binary number for 2 is 0000 0010
the operator is left shift..so 0000 0100
go through this u will get the output...

Is This Answer Correct ?    79 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1109


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1273


can we implement multi-threads in c.

1118


In a header file whether functions are declared or defined?

1117


Is c is a high level language?

1181


I need a sort of an approximate strcmp routine?

1015


What is register variable in c language?

1017


Why is c faster?

1081


What is the meaning of ?

1023


What is call by reference in functions?

1418


What is strcpy() function?

1128


What is the difference between void main and main in c?

1142


How do we open a binary file in Read/Write mode in C?

1231


What are the different types of pointers used in c language?

1033


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

1016