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 x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}

Answer Posted / anand h i

in printf functiton evaluation of variables start from
right to left so first it evaluates
x>>2
101 after right shift of 2 it will be 001=1
next it will evaluate
x<<2
1 after left shift of 2 it will be 100=4
at the last x=4
so answer is 4 4 1

Is This Answer Correct ?    3 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of clrscr?

1093


develop algorithms to add polynomials (i) in one variable

2147


Explain what is a 'locale'?

1065


How can I get back to the interactive keyboard if stdin is redirected?

1169


Explain what are reserved words?

1091


Why void is used in c?

1002


What is a constant and types of constants in c?

1104


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

2180


What is external variable in c?

1049


What is the purpose of 'register' keyword in c language?

1006


What is enumerated data type in c?

1068


Why functions are used in c?

1112


What is the advantage of a random access file?

1185


What is a protocol in c?

981


Array is an lvalue or not?

1103