C Programming :: Library Functions

Home > C Programming > Library Functions > General Questions

1 / 4

 The library function sqrt operates on a double precision argument. If, i is an integer variable, which one of the following calls would correctly compute sqrt (i)?

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

2 / 4

 what will be the output of following C program.

void main()
{
sum=0
for (i=100 , i<0 , i++)
sum += abs(i);
printf("%d", sum)
}

Answer: Option D

Explanation:

Above answerss are incorrect. 



The Expected answer either the 0 or Compilation error,

Workspace


Tags:  No Tags on this question yet!

3 / 4

 Which of the following library function below by default aborts the program?

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace


Tags:  TCS