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

How can you increase the allowable number of simultaneously open files?

1171


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6883


What is this pointer in c plus plus?

1105


What do you know about the use of bit field?

1053


What are high level languages like C and FORTRAN also known as?

1178


What are the advantages and disadvantages of pointers?

1076


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1480


What are the different types of data structures in c?

1175


Is there a way to switch on strings?

1100


What is a nested loop?

1144


What are terms in math?

1063


Write a program to swap two numbers without using the third variable?

1082


Write a program to print factorial of given number without using recursion?

999


int far *near * p; means

3566


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1031