Which of the following is the default return value of functions in C++?

a) int
b) char
c) float
d) void

1 thought on “Which of the following is the default return value of functions in C++?”

  1. a
    Explanation: C++ uses int as the default return values for functions. It also restricts that the return type of the main function must be int.

Leave a Comment