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

write a c program in such a way that if we enter the today date the output should be next day's date.

2137


what is ur strangth & weekness

2329


What is array of structure in c?

1098


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3768


What is the meaning of ?

990


Why is struct padding needed?

1031


What is difference between && and & in c?

1045


Explain what is a program flowchart and explain how does it help in writing a program?

1044


What is a program flowchart and explain how does it help in writing a program?

1225


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2204


Is fortran faster than c?

983


what value is returned to operating system after program execution?

2063


What is extern storage class in c?

943


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1292


What happens if you free a pointer twice?

1028