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

Write a program to print factorial of given number using recursion?

960


Explain how can I make sure that my program is the only one accessing a file?

1167


How can I handle floating-point exceptions gracefully?

1108


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1869


What does *p++ do?

979


How can I make it pause before closing the program output window?

990


What are the advantages and disadvantages of pointers?

1012


Discuss the function of conditional operator, size of operator and comma operator with examples.

1097


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

1017


What is structure data type in c?

970


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

2277


Write a program to check armstrong number in c?

1082


What is static identifier?

1166


What is the code in while loop that returns the output of given code?

1896


Why string is used in c?

954