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
When is the “void” keyword used in a function?
What is a structural principle?
What is a constant?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
Write a program to print “hello world” without using semicolon?
What is table lookup in c?
Can you explain the four storage classes in C?
What the different types of arrays in c?
Explain the use of 'auto' keyword in c programming?
What is static memory allocation? Explain
What is the difference between class and object in c?
Is it cc or c in a letter?
Write a program to reverse a string.
How can I open files mentioned on the command line, and parse option flags?
What does. int *x[](); means ?