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

main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++; //num[2]=1; after compile time
printf("%d", num[i]);
}
}

output:- 1

//if you have R&D mode then send the your view .No doubt ,
//it is correct.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a stream?

1133


What are the salient features of c languages?

1096


How does struct work in c?

1081


What is the code in while loop that returns the output of given code?

1982


what is a constant pointer in C

1153


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2364


How do I swap bytes?

1067


How can I implement a delay, or time a users response, with sub-second resolution?

1072


what value is returned to operating system after program execution?

2115


What is null pointer constant?

1152


Explain the binary height balanced tree?

1182


What is difference between scanf and gets?

1263


Explain About fork()?

1113


Can you return null in c?

1160


Why does the call char scanf work?

1202