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

num[i]=i+1
num[1]=1+1=2, but num[1] is 1.so there is a error...

Is This Answer Correct ?    4 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a file descriptor in c?

1127


what is the syallabus of computer science students in group- 1?

2316


What is an endless loop?

1269


What is the difference between mpi and openmp?

1288


How is = symbol different from == symbol in c programming?

1042


What does %p mean?

1083


What are the types of unary operators?

1184


What is bubble sort in c?

1049


What is the difference between union and structure in c?

1174


What is property type c?

1080


Explain 'far' and 'near' pointers in c.

1138


What does void main () mean?

1234


Explain what is the benefit of using const for declaring constants?

1030


What is c programming structure?

1190


Why do we use null pointer?

1061