2. 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
Answer / guest is wrong
B)it returns the value rounded up to the next higher integer
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / ramya
b) it returns the value rounded up to the next hiher integer
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / guest
A)It returns the value rounded down to the next lower
integer
| Is This Answer Correct ? | 1 Yes | 3 No |
Determine the code below, tell me exactly how many times is the operation sum++ performed ? for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; j--) sum++;
#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?
What is the difference between the local variable and global variable in c?
write a reverse string to print a stars.(with out using logic) ***** **** *** ** *
what is difference between ANSI structure and C99 Structure?
What is the purpose of main() function?
What is wrong with this statement? Myname = 'robin';
differentiate between const char *a; char *const a; and char const *a;
2 Answers College School Exams Tests, HCL, TCS,
Why c is known as a mother language?
main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); }
27 Answers Advent Global Solutions, CitiGroup, Valeo Lighting Systems India Private Limited, Vishal Transformers, Wipro, Zencer,
write a program in c to find out the sum of digits of a number.but here is a condition that compiler sums the value from left to right....not right to left..
why integer range between -327680to+32767