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...

what is the output of following question?

void main()
{
int i=0,a[3];
a[i]=i++;
printf("%d",a[i]
}

Answer Posted / sha

Vignesh, you are right about the post incerement operation.
The a[i]=a[0] which will be assigned 0 but the printf will
print 0 as output because its printing the a[0] and not a
[1].

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we write conio h in c?

1079


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1309


What is the difference between c &c++?

1208


What is the benefit of using #define to declare a constant?

1150


Where does the name "C" come from, anyway?

1216


Why doesn't C support function overloading?

2868


How is pointer initialized in c?

1093


What are the advantage of c language?

1106


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2160


How will you delete a node in DLL?

1338


Write a program to check armstrong number in c?

1180


What does %2f mean in c?

1284


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

2044


What are the advantages and disadvantages of c language?

1070


define string ?

1170