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

Discussion

If return type for a function is not specified, it defaults to int

  • A.True
  • B.False

Answer: A

Correct answer: True

Under the older rules an omitted return type defaulted to int - which is why so much old code writes main() rather than int main(). C99 removed the default, so a modern compiler will at least warn.

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

Post your comment

Please log in or register to post a comment.