Q141
Open questionSelect an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
250
Questions
8/13
Page
Pick an option on a question to see the right answer and solution.
Q141
Open questionSelect an option to see the answer and solution.
Q142
Open question#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);
}Select an option to see the answer and solution.
Q143
Open question#include <stddef.h>
int main(void)
{
int num[10];
int *p1=&num[14], *p2=&num[19];
ptrdiff_t a = p1-p2;
printf("%d", a);
}Select an option to see the answer and solution.
Q144
Open questionsize_t wcstombs(char *s, const wchar_t *a, size_t n)Select an option to see the answer and solution.
Q145
Open question#include<stdio.h>
#include<limits.h>
main()
{
int d;
d=SHRT_MAX + SHRT_MIN+1;
printf("%d",d);
}Select an option to see the answer and solution.
Q146
Open questionSelect an option to see the answer and solution.
Q147
Open questiondouble x=3,y= - 6;
printf("%lf %lf", fabs(x), fabs(y));Select an option to see the answer and solution.
Q148
Open questionSelect an option to see the answer and solution.
Q149
Open questionSelect an option to see the answer and solution.
Q150
Open questionSelect an option to see the answer and solution.
Q151
Open question#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local;
time_t t;
t=time(NULL);
local=localtime(&t);
printf("%d",local->tm_isdst);
return 0;
}Select an option to see the answer and solution.
Q152
Open question#include <stdlib.h>
_Mbsave _Mbxtowc = {0};
int (mbtowc) (wchar_t *pwc, const char *a, size_t n)
{
return (-Mbtowc (pwc, s, n, &-Mbxtowc) ) ;
}Select an option to see the answer and solution.
Q153
Open questionvoid main ()
{
char com[50];
strcpy( com, "dir" );
system(com);
}Select an option to see the answer and solution.
Q154
Open questionSelect an option to see the answer and solution.
Q155
Open question#include<stdio.h>
#include<stdlib.h>
#include<time.h>
typedef struct tm tm;
int main()
{
time_t ct;
time(&ct);
tm *mt=localtime(&ct);
printf("%d\n",mt-> tm_year);
}Select an option to see the answer and solution.
Q156
Open questionSelect an option to see the answer and solution.
Q157
Open questionSelect an option to see the answer and solution.
Q158
Open questionSelect an option to see the answer and solution.
Q159
Open questionSelect an option to see the answer and solution.
Q160
Open questionSelect an option to see the answer and solution.