main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / xyz
the answer will be 3 b'coz whatever the "num[i] = i++;"
this expression the output will be depend's on "i" and
at last i will be 2 and num[2]=3 which is the answer.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What are the disadvantages of external storage class?
What are different types of variables in c?
What is data type long in c?
What are the two types of structure?
how do you programme Carrier Sense Multiple Access
In a switch statement, what will happen if a break statement is omitted?
What is FIFO?
Define circular linked list.
What is f'n in math?
What is the use of #define preprocessor in c?
What is a pointer in c plus plus?
Write a program to print fibonacci series using recursion?
Explain bit masking in c?
Why should I use standard library functions instead of writing my own?
How can you draw circles in C?