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 / abdur rab

it will lead to Undefined behaviour, both answers 3 aand 4
are correct.

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c have enums?

1100


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

2176


What is the difference between exit() and _exit() function in c?

1075


What is meant by operator precedence?

1142


What is malloc and calloc?

1051


Function calling procedures? and their differences? Why should one go for Call by Reference?

1083


Difference between constant pointer and pointer to a constant.

1138


Why pointers are used?

1072


What are the two forms of #include directive?

1163


What is a lvalue

1081


How many levels deep can include files be nested?

1138


What is a function in c?

1574


Explain how can I avoid the abort, retry, fail messages?

1043


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

1071


What is the scope of static variable in c?

1017