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 / abdur rab

it will lead to Undefined behaviour, both answers 3 aand 4
are correct.

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between Structures and Arrays?

1154


Explain how can a program be made to print the name of a source file where an error occurs?

1158


What does c mean in basketball?

956


How can I write functions that take a variable number of arguments?

1095


Do pointers need to be initialized?

1044


Why is a semicolon (;) put at the end of every program statement?

1049


What is the difference between text and binary i/o?

1018


What is table lookup in c?

1050


Write a program to identify if a given binary tree is balanced or not.

1108


Write a program in c to replace any vowel in a string with z?

1091


Explain what is wrong in this statement?

1085


Explain 'bit masking'?

1042


What is the difference between int main and void main in c?

1118


Give basis knowledge of web designing ...

1990


How pointer is different from array?

1033