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 assert and when would I use it?
What do you mean by a local block?
Why c is called object oriented language?
Who is the main contributor in designing the c language after dennis ritchie?
How to compare array with pointer in c?
Write a code to generate a series where the next element is the sum of last k terms.
Is there a way to jump out of a function or functions?
What type is sizeof?
What is meant by inheritance?
Explain indirection?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is the function of volatile in c language?
What are the two types of structure?
Explain two-dimensional array.