Which of the following is a valid functional statement 3 poi

Which of the following is a valid functional statement (3 points)

a) function cube ( double x )

b) double cube ( x )

c) cube ( double x )

d) double cube ( double x )

Solution

a) function cube ( double x )

is not valid because function return type is not mentioned.

plus function keyword is not valid keyword.

b) double cube ( x ) : is not a valid statement beacuse arguement x data type is not mentioned

c) cube ( double x ) : not valid as return data type of the function is missing.

d) double cube ( double x ) : is valid statement as everything is present from the function name to its return type and the data type of arguement of x.

Which of the following is a valid functional statement (3 points) a) function cube ( double x ) b) double cube ( x ) c) cube ( double x ) d) double cube ( doubl

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site