a i what do you meant by a function are


(a) (i) What do you meant  by a function? Are functions required when writing a C program?
(ii) State one of the advantages to the use of functions.
(iii) What do you meant by a function call? From what parts of a program can a function be called?

(b) Each of the following is the first line of a function definition.

Explain the meaning of each.

(i) float f(float a, float b)
(ii) long f(int zorro)
(iii) void f(double ab)
(iv) char f(void)

(c) Prepare the first line of the function definition, including the formal argument declarations, for each of the situations described
below.

(i) A function called sample generates and returns an integer quantity.

(ii) A function called root accepts two integer arguments and returns a floating-point result.

(iii) A function called convert accepts a character and returns another character.

(d) Prepare a program in C which will compute the square of the numbers from 1 to 10 and gives the output. Here the program will consist of a function square which will return the square of a number.

Request for Solution File

Ask an Expert for Answer!!
Application Programming: a i what do you meant by a function are
Reference No:- TGS0360724

Expected delivery within 24 Hours