Machine-translated by Google. Questions are authored in English.
Top

Discussion

For 'C' programming language

  • A.Constant expressions are evaluated at compile time
  • B.String constants can be concatenated at compile time
  • C.Size of array should be known at compile time
  • D.All of these

Answer: D

Correct answer: All of these

All three are true of C. Constant expressions such as 2*60*60 are folded at compile time. Adjacent string literals are concatenated by the compiler, so "abc" "def" becomes one string. And the size of an array must be known when the code is compiled, which is why the bound has to be a constant expression rather than a variable.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.