ExamVeda
Login
Home
11
What will be the output of the following C code?
#include <stdio.h>
#include <limits.h>
int main() 
{
    printf("The minimum value of LONG = %lf\n", LONG_MIN);
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
12
What is returned by the function localeconv()?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
13
What will be the output of the following C code if the system time is 4:27 PM?
#include<stdio.h>
#include<time.h>
int main()
{
    struct tm *ptr;
    time_t t;
    char str[100];
    t = time(NULL);
    ptr = localtime(&t);
    strftime(str,100,"%H %p %M minutes",ptr);
    puts(str);
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
14
Which of the following functions returns a pointer to a string representing the date and time stored in a structure?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
15
Which macro retrieves the next argument in the parameter list of the function with type type?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
16
Which header file should be included if a function has to be defined such that it can accept variable number of arguments?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
17
The function computes the exponential function of x.
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
18
The macro void assert(int expression) allows the diagnostic information to be written in which of the following files?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
19
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.
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
20
Is this right explanation to the given code?
void *calloc(size_t n, size_t size) 
#n -- This is the number of elements to be allocated.
#size -- This is the size of elements.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board