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 i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}

what will be the output?
}

Answer Posted / xyz

the answer will be 3 b'coz whatever the "num[i] = i++;"
this expression the output will be depend's on "i" and
at last i will be 2 and num[2]=3 which is the answer.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the disadvantages of external storage class?

1107


What are different types of variables in c?

1128


What is data type long in c?

1117


What are the two types of structure?

1146


how do you programme Carrier Sense Multiple Access

2014


In a switch statement, what will happen if a break statement is omitted?

1120


What is FIFO?

1842


Define circular linked list.

1082


What is f'n in math?

1142


What is the use of #define preprocessor in c?

1123


What is a pointer in c plus plus?

1387


Write a program to print fibonacci series using recursion?

1135


Explain bit masking in c?

1193


Why should I use standard library functions instead of writing my own?

1318


How can you draw circles in C?

1197