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...

what will be the output of this program?
void main()
{
int a[]={5,10,15};
int i=0,num;
num=a[++i] + ++i +(++i);
printf("%d",num);
}

Answer Posted / abc

initially i=0;
num=a[++i]+ ++i + ++i;
num=a[1]+2+3
num=10+2+3=15

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1424


Explain how can I avoid the abort, retry, fail messages?

1043


Differentiate between a structure and a union.

1288


What do you understand by normalization of pointers?

1058


write a program to find out prime number using sieve case?

2093


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1112


Explain union.

1167


write a program to concatenation the string using switch case?

2096


What is the concatenation operator?

1147


What is a macro?

1101


What are the different types of control structures in programming?

1126


Where register variables are stored in c?

960


What is pointer & why it is used?

1109


What is 1f in c?

2647


What is non linear data structure in c?

1019