main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / pragathi
3 is the answer bcoz
i=1
num[i]=i++;
num[1]=2;
here i=2
printf("%d", num[2]);
here 3 is there at position 2 .
so answer is 3
| Is This Answer Correct ? | 19 Yes | 3 No |
Post New Answer View All Answers
What is pass by reference in functions?
Which is better oop or procedural?
Why array is used in c?
What is the condition that is applied with ?: Operator?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What are dangling pointers in c?
What is character set?
What are the types of data types and explain?
Differentiate between a structure and a union.
what is the function of pragma directive in c?
How do you print only part of a string?
Do you know the use of 'auto' keyword?
What is new line escape sequence?
Does c have function or method?
What are the complete rules for header file searching?