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

Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

1233


What is identifier in c?

1009


How can this be legal c?

1085


What are the types of c language?

1028


What is context in c?

921


Why we write conio h in c?

1029


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3956


What is meant by int main ()?

1204


difference between object file and executable file

6721


What is the return type of sizeof?

1063


What are inbuilt functions in c?

1034


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1299


Why doesnt this code work?

1058


What does int main () mean?

1022


What is the purpose of main( ) in c language?

1135