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

Describe explain how arrays can be passed to a user defined function

1061


What is call by reference in functions?

1354


Write a program to reverse a given number in c?

999


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

2156


C program to find all possible outcomes of a dice?

2302


What is an expression?

1013


Define Spanning-Tree Protocol (STP)

1082


Why we use stdio h in c?

990


Define Array of pointers.

1061


What is output redirection?

1180


Do you know pointer in c?

1006


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1280


Explain what is the benefit of using #define to declare a constant?

1123


What is calloc in c?

1091


Explain what’s a signal? Explain what do I use signals for?

1078