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 are the differences between Structures and Arrays?
Explain how can a program be made to print the name of a source file where an error occurs?
What does c mean in basketball?
How can I write functions that take a variable number of arguments?
Do pointers need to be initialized?
Why is a semicolon (;) put at the end of every program statement?
What is the difference between text and binary i/o?
What is table lookup in c?
Write a program to identify if a given binary tree is balanced or not.
Write a program in c to replace any vowel in a string with z?
Explain what is wrong in this statement?
Explain 'bit masking'?
What is the difference between int main and void main in c?
Give basis knowledge of web designing ...
How pointer is different from array?