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

how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1691


Write a code to remove duplicates in a string.

1049


Why is sizeof () an operator and not a function?

1040


What are the different categories of functions in c?

1139


What are the types of type qualifiers in c?

1093


if p is a string contained in a string?

1857


Explain how do you search data in a data file using random access method?

1140


How do I copy files?

1068


Why do we use null pointer?

1076


Is main is a keyword in c?

1131


What is the use of typedef in structure in c?

978


Why do we use return in c?

1013


What is bss in c?

1111


What is the use of sizeof?

1023


What is structure in c definition?

1063