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

Explain setjmp()?

1079


What is variable declaration and definition in c?

902


Explain the use of #pragma exit?

1181


What is use of integral promotions in c?

1152


Ow can I insert or delete a line (or record) in the middle of a file?

1006


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1254


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1111


How to delete a node from linked list w/o using collectons?

2786


Explain what is the purpose of "extern" keyword in a function declaration?

1076


How can you increase the allowable number of simultaneously open files?

1165


explain how do you use macro?

1166


What is the difference between int main and void main?

1051


How many levels of indirection in pointers can you have in a single declaration?

1094


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1647


What is the difference between call by value and call by reference in c?

1168