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 is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
Explain how can I avoid the abort, retry, fail messages?
Differentiate between a structure and a union.
What do you understand by normalization of pointers?
write a program to find out prime number using sieve case?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Explain union.
write a program to concatenation the string using switch case?
What is the concatenation operator?
What is a macro?
What are the different types of control structures in programming?
Where register variables are stored in c?
What is pointer & why it is used?
What is 1f in c?
What is non linear data structure in c?