main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / vyasaraj.s
The output is 3
| Is This Answer Correct ? | 21 Yes | 7 No |
Post New Answer View All Answers
What is declaration and definition in c?
Can we change the value of constant variable in c?
Implement bit Array in C.
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Are pointers integer?
What is pointer to pointer in c?
What do you understand by normalization of pointers?
explain what is an endless loop?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
How is pointer initialized in c?
Is c still relevant?
Explain 'far' and 'near' pointers in c.
What is main function in c?
Why can't I perform arithmetic on a void* pointer?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational