228k views
2 votes
As used in int square(int); int is not a(n) __________.

a. data type
b. parameter type
c. return type
d. function prototype

User Ques Tion
by
7.7k points

1 Answer

2 votes

Final answer:

In the function declaration 'int square(int);', the 'int' before the function name is indeed the return type, signifying that the function returns an integer value.

Step-by-step explanation:

The declaration of the function int square(int); includes several parts that define the function's behavior. The 'int' at the beginning of the declaration specifies the return type of the function, which indicates the type of value that the function will return after it has completed its execution. In this case, 'int' stands for an integer data type. So, the correct answer to the question "As used in int square(int); int is not a(n) __________." would be: c. return type.

User Ioan Paul Pirau
by
7.3k points