1.

Define SQR function with example.

Answer»

SQR(X): function returns the square root of its argument which should never be negative.
For example:

#include<stdio.h>
#include<conio.h>
void main()
{
int a = 4, b;
b = sqr(a);
printf (“%d”, b);
}

Output: 2



Discussion

No Comment Found