161k views
2 votes
True/False: If a function is legally prototyped to return an integer value, it can return a structure member that is an integer data type.

User Vancalar
by
5.7k points

1 Answer

3 votes
#1) If a function is legally prototyped to return an integer value, it can return a structure member that is an integer data type.
Answer: True. Any method that is not declared void must contain a return statement with a corresponding return value. The data type of the return value must match the method's declared return type; you can't return an integer value from a method declared to return a boolean.
User Kumar Manglam
by
6.0k points