main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / abdur rab
it will lead to Undefined behaviour, both answers 3 aand 4
are correct.
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What is an array? What the different types of arrays in c?
Can true be a variable name in c?
how is the examination pattern?
How can I automatically locate a programs configuration files in the same directory as the executable?
Why isnt any of this standardized in c?
Explain the ternary tree?
What's the right way to use errno?
What is the purpose of void in c?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
In a header file whether functions are declared or defined?
What is pivot in c?
What is the difference between fread and fwrite function?
What are the rules for identifiers in c?
write a proram to reverse the string using switch case?
What is #pragma statements?