Home » Technical Questions » Programming

What will be output when you will execute following c code? #include void main() { int const SIZE = 5; int expr; double value[SIZE] = { 2.0, 4.0, 6.0, 8.0, 10.0 }; expr=1|2|3|4; printf ( "%f", value[expr] ); }

Correct Answer: Compilation error

Explanation:

Size of any array in c cannot be constantan variable.


← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion