main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / raju
correct answer is 2 bcz once assign only that will take as
that value
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
Why we use void main in c?
What is the sizeof () operator?
Why c is called a middle level language?
What is #define in c?
Explain what is the advantage of a random access file?
Can we assign integer value to char in c?
if p is a string contained in a string?
What is the use of void pointer and null pointer in c language?
What is the difference between new and malloc functions?
Explain continue keyword in c
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What is the code in while loop that returns the output of given code?
Is c procedural or functional?
What are the different data types in C?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?