Home / MCQ Bank / Computer
Computer Standard Library Functions

If the result overflows, the function returns the value of the macro HUGE_VAL, carrying the same sign except for the ______ function as the correct value of the function.

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • tan

Related Computer Questions

Which of these classes is used to define exceptions? In which case is the division method hash function less effective? What will be the output of the following C code? #include <stdio.h> int main() { int i = 0, j = 0; l1: while (i < 2) { i++; while (j < 3) { printf("loop\n"); goto l1; } } } What is the space complexity of the following dynamic programming implementation of the balanced partition problem? #include<stdio.h> int balanced_partition(int *arr, int len) { int sm = 0, i, j; for(i = 0;i < len; i++) sm += arr[i]; if(sm % 2 != 0) return 0; int ans[sm/2 + 1][len + 1]; for(i = 0; i <= len; i++) ans[0][i] = 1; for(i = 1; i <= sm/2; i++) ans[i][0] = 0; for(i = 1; i <= sm/2; i++) { for(j = 1;j <= len; j++) { ans[i][j] = ans[i][j-1]; if(i >= arr[j - 1]) ans[i][j] = ans[i][j] || ans[i - arr[j - 1]][j - 1]; } } return ans[sm/2][len]; } int main() { int arr[] = {3, 4, 5, 6, 7, 1}, len = 6; int ans = balanced_partition(arr,len); if(ans == 0) printf("false"); else printf("true"); return 0; } Which keyword is used to handle exceptions in Java?