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

15

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should structures be passed by values or by references?

572


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1559


When should we use pointers in a c program?

618


What are identifiers and keywords in c?

558


What is double pointer?

552






find out largest elemant of diagonalmatrix

1639


What are valid signatures for the Main function?

694


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

666


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

644


How are pointers declared in c?

589


What is structure in c language?

608


The difference between printf and fprintf is ?

709


What are control structures? What are the different types?

587


what is stack , heap ,code segment,and data segment

2208


What is static memory allocation? Explain

625