main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / mortal
num[i] is num[1] and its reassigned as i++ that is 1 thus it
will print 1.
but im not at all sure about this..
| Is This Answer Correct ? | 2 Yes | 10 No |
Post New Answer View All Answers
What is the difference between call by value and call by reference in c?
Apart from dennis ritchie who the other person who contributed in design of c language.
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What is the use of define in c?
Explain what is the benefit of using #define to declare a constant?
What is binary tree in c?
What should malloc(0) do?
What does sizeof int return?
Can you explain the four storage classes in C?
What are integer variable, floating-point variable and character variable?
What is the right way to use errno?
Explain the properties of union.
What does c mean in standard form?
Why is c faster?
What are the application of void data type in c?