Computer Science, asked by TbiaSupreme, 11 months ago

A function is a reusable block of statements. State whether the statement is True (or) False And Justify it

Answers

Answered by hukam0685
0
Hi,

Answer: True

✴️ Explanation:

➡️A function once defined is used again and again with different input values

➡️A function is defined once and saved in memory.

➡️Every time it returns a value when called with different argument values in main program,by function call statement.

➡️A program need not to write the entire statements again and again,thus functions in a main program reduce redundancy.

✴️For ex:

int ADD ( int x, int y)
{
int z,

z = x + y;
return (z);
}

Here ADD is a function ,defined for integer data type ,which take two integer values,and return sum .

Function Call:

ADD (5,10);
ADD(4,7);
ADD(17,90);

like that we can call it again and again with different inputs,thus we can say that function is a reusable building block.


Hope it helps you.
Answered by Anonymous
3
heya......

answer is
========

this statement is true as function can be used again and again with different input values.

========
hope it helps ^_^
Similar questions