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 / vyasaraj.s

The output is 3

Is This Answer Correct ?    21 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is declaration and definition in c?

1085


Can we change the value of constant variable in c?

1054


Implement bit Array in C.

1139


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

1086


Are pointers integer?

1010


What is pointer to pointer in c?

1104


What do you understand by normalization of pointers?

1058


explain what is an endless loop?

1082


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1065


How is pointer initialized in c?

1021


Is c still relevant?

1079


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

1138


What is main function in c?

1077


Why can't I perform arithmetic on a void* pointer?

1094


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

1313