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 |
void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?
Do you have any idea about the use of "auto" keyword?
When should you use a type cast?
What kind of sorting is this? SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort
can we access one file to one directory?
what is the different between if-else and switch statment (other than syntax)
26 Answers CTS, Oracle, Scorpos,
1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file
How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include<stdio.h>...
What is a null pointer in c?
Discuss the function of conditional operator, size of operator and comma operator with examples.
What are the back slash character constants or escape sequence charactersavailable in c?
Describe the order of precedence with regards to operators in C.