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

correct answer is 2 bcz once assign only that will take as
that value

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The statement, int(*x[]) () what does in indicate?

1101


write a program to copy the string using switch case?

2865


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1909


What is difference between structure and union with example?

1015


why wipro wase

2267


What does sizeof function do?

1146


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1167


Why is extern used in c?

1067


Write a program which returns the first non repetitive character in the string?

1074


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

1083


What is break statement?

1075


What is a wrapper function in c?

1086


what is the difference between 123 and 0123 in c?

1169


Write program to remove duplicate in an array?

1049


What is the deal on sprintf_s return value?

1084