What is the function of ceil(X) defined in math.h do?
A)It returns the value rounded down to the next lower
integer
B)it returns the value rounded up to the next higher integer
C)the Next Higher Value
D)the next lower value

Answers were Sorted based on User's Feedback



What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the ne..

Answer / phani kumar s

C
ceil(45.90)--> 46
ceil(45.23)--> 46

Is This Answer Correct ?    14 Yes 1 No

What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the ne..

Answer / subbu

answer is b

Is This Answer Correct ?    9 Yes 1 No

What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the ne..

Answer / jj

ceil(2.3)====3
ceil(-2.3)===-2

Is This Answer Correct ?    6 Yes 2 No

Post New Answer

More C Interview Questions

What is ponter?

0 Answers   TCS,


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

0 Answers  


write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }

1 Answers  


can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?

2 Answers  


What is far pointer in c?

0 Answers  






Write a c program to demonstrate Type casting in c?

2 Answers  


What is the difference between fread buffer() and fwrite buffer()?

0 Answers  


What is const and volatile in c?

0 Answers  


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

0 Answers  


Describe static function with its usage?

0 Answers  


What is the significance of c program algorithms?

0 Answers  


what is the role you expect in software industry?

2 Answers   HCL, Wipro,


Categories