C Programming Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? rem = modf(3.14, 2.1); rem = fmod(3.14, 2.1); rem = 3.14 % 2.1; Remainder cannot be obtain in floating point division. rem = modf(3.14, 2.1); rem = fmod(3.14, 2.1); rem = 3.14 % 2.1; Remainder cannot be obtain in floating point division. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);} hello garbage value Error None of These hello 5 hello garbage value Error None of These hello 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? int funct(); void funct(int) { printf(“Hello"); } None of these int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } int funct(); void funct(int) { printf(“Hello"); } None of these int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} Compilation Error will print garbage value will print Hello World None of these. Compilation Error will print garbage value will print Hello World None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming When a function is recursively called all the automatic variables are stored in a .......... Stack Queue Register Linked list Array Stack Queue Register Linked list Array ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? arr[7] arr[6] arr{7} arr{6} None of these arr[7] arr[6] arr{7} arr{6} None of these ANSWER DOWNLOAD EXAMIANS APP