41. Which of the following returns a signed integer type on finding the difference between two pointers to elements in the same array?
42. What will be the output of the following C code if the current system date is 6/22/2017?
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
time_t ct;
time(&ct);
struct tm *mt=localtime(&ct);
printf("%d\n",mt-> tm_date);
}
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
time_t ct;
time(&ct);
struct tm *mt=localtime(&ct);
printf("%d\n",mt-> tm_date);
}43. What will be the output of the following C code?
#include <stddef.h>
int main(void)
{
int num[10];
int *p1=&num[14], *p2=&num[19];
ptrdiff_t a = p1-p2;
printf("%d", a);
}
#include <stddef.h>
int main(void)
{
int num[10];
int *p1=&num[14], *p2=&num[19];
ptrdiff_t a = p1-p2;
printf("%d", a);
}44. What is "a" in the given C code?
size_t wcstombs(char *s, const wchar_t *a, size_t n)
size_t wcstombs(char *s, const wchar_t *a, size_t n)45. Given that the value of SHRT_MAX is equal to 32767 and that of SHRT_MIN is equal to -32768, What will be the output of the following C code?
#include<stdio.h>
#include<limits.h>
main()
{
int d;
d=SHRT_MAX + SHRT_MIN+1;
printf("%d",d);
}
#include<stdio.h>
#include<limits.h>
main()
{
int d;
d=SHRT_MAX + SHRT_MIN+1;
printf("%d",d);
}46. Which of the given options is an array type used for holding information?
47. What will be the output of the following C code?
double x=3,y= - 6;
printf("%lf %lf", fabs(x), fabs(y));
double x=3,y= - 6;
printf("%lf %lf", fabs(x), fabs(y));48. Which among the given macros is defined in the header file locale.h?
49. To find the maximum value of an object of type unsigned long long int, we use the macro . . . . . . . .
50. void free(void *ptr) deallocates the memory previously allocated by a call to . . . . . . . . , . . . . . . . . or . . . . . . . .
Read More Section(Standard Library Functions)
Each Section contains maximum 100 MCQs question on Standard Library Functions. To get more questions visit other sections.
