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

When is the “void” keyword used in a function?

1430


What is a structural principle?

1091


What is a constant?

997


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1731


Write a program to print “hello world” without using semicolon?

1080


What is table lookup in c?

1037


Can you explain the four storage classes in C?

1069


What the different types of arrays in c?

1025


Explain the use of 'auto' keyword in c programming?

1072


What is static memory allocation? Explain

1036


What is the difference between class and object in c?

1093


Is it cc or c in a letter?

960


Write a program to reverse a string.

1027


How can I open files mentioned on the command line, and parse option flags?

1017


What does. int *x[](); means ?

1017