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
What header files do I need in order to define the standard library functions I use?
When should volatile modifier be used?
What standard functions are available to manipulate strings?
What does the error message "DGROUP exceeds 64K" mean?
What is the benefit of using const for declaring constants?
Why do we use & in c?
Explain what is the benefit of using an enum rather than a #define constant?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
What is calloc() function?
Why use int main instead of void main?
How can I do graphics in c?
What is the explanation for cyclic nature of data types in c?
Can a void pointer point to a function?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result