ExamVeda
Login
Home
1
What is returned by the function if the space cannot be allocated by the function malloc(), realloc() and calloc()?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
2
The following C code results in an error. State whether true or false.
#include<stdio.h>
#include<time.h>
int main()
{
    struct tm *local;
    time_t t;
    t=time(NULL);
    local=asctime(localtime(&t));
    printf("%d",local->tm_wday);
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
3
RAND_MAX macro is the maximum value returned by the rand function.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
4
What will be the output of the following C code?
char word[20 ] = "1.234555 WELCOME"; 
char *w; double dis; 
dis= strtod(word, &w); 
printf("The number is %lf\n", dis); 
printf("String  is |%s|", w);
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
5
Which function returns the arc sine in the range [-pi/2, +pi/2] radians?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
6
If the result underflow, the function returns zero.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
7
Which of the following header file defines one function longjmp(), and one variable type jmp_buf?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
8
The mbstowcs() function is used to return the number of array elements modified, not including a terminating zero code, if any.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
9
longjmp() function is the only function defined under the header file setjmp.h?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
10
void assert(int expression) when the expression is evaluated to true?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board