Create the definition of a function max


Discuss the below:

Q1. Given the variables isFullTimeStudent and age , write an expression that evaluates to true if age is less than 19 or isFullTimeStudent is true.

Q2.Write an expression that evaluates to true if and only if value of the integer variable isAMember is false.

Q3. Write a conditional that assigns true ( 1 ) to the variable fever if the variable temperature is greater than 98.6 .

Q4. Write the definition of a function printGrade , which has a char parameter and returns nothing. The function prints on a line by itself the message string Grade: followed by the char parameter (printed as a character) to standard output. Don't forget to put a new line character at the end of your line.

Thus, if the value of the parameter is 'A', the function prints out Grade: A

Q5. Write a statement that declares a prototype for a function add , which has two int parameters and returns an int .

Q6. Write the definition of a function max that has three int parameters and returns the largest.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create the definition of a function max
Reference No:- TGS01936109

Now Priced at $25 (50% Discount)

Recommended (97%)

Rated (4.9/5)