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

It will print answer 1 because in case of++ atfairt assing
and then increment..

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where are the auto variables stored?

1108


What is clrscr in c?

1098


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2067


Do you know the difference between malloc() and calloc() function?

1026


Explain why c is faster than c++?

1033


write a program fibonacci series and palindrome program in c

996


Is flag a keyword in c?

1124


What is #define size in c?

1143


What is const and volatile in c?

1003


Without Computer networks, Computers will be half the use. Comment.

2274


What is "Duff's Device"?

1132


What is difference between structure and union?

1096


Why do we use static in c?

1087


What is adt in c programming?

1122


What are the application of void data type in c?

1154