Q241
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.
296
Questions
13/15
Page
Pick an option on a question to see the right answer and solution.
Q241
Open questionSelect an option to see the answer and solution.
Q242
Open question#include <stdio.h>
#include <math.h>
int main()
{
int i = 90;
printf("%f\n", sin(i));
return 0;
}Select an option to see the answer and solution.
Q243
Open questionSelect an option to see the answer and solution.
Q244
Open question#include <stdio.h>
int main()
{
int i = 10, j = 3, k = 3;
printf("%d %d ", i, j, k);
}Select an option to see the answer and solution.
Q245
Open questionint fputs(char *line, FILE *fp)Select an option to see the answer and solution.
Q246
Open questionSelect an option to see the answer and solution.
Q247
Open questionSelect an option to see the answer and solution.
Q248
Open questionSelect an option to see the answer and solution.
Q249
Open questionSelect an option to see the answer and solution.
Q250
Open question#include <stdio.h>
int main()
{
int n;
scanf("%d", &n);
ungetc(n, stdin);
scanf("%d", &n);
printf("%d\n", n);
return 0;
}Select an option to see the answer and solution.
Q251
Open question#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("%d\n", rand() % 1000);
return 0;
}Select an option to see the answer and solution.
Q252
Open questionSelect an option to see the answer and solution.
Q253
Open questiongcc -otest test.c
./test > myfile
#include <stdio.h>
int main(int argc, char **argv)
{
char c = 'd';
putchar(c);
printf(" %d\n", argc);
}Select an option to see the answer and solution.
Q254
Open questionscanf(“ %d %d %d”,&n1,&n2);Select an option to see the answer and solution.
Q255
Open question#include <stdio.h>
int main()
{
int i = 10, j = 2;
printf("%d\n", printf("%d %d ", i, j));
}Select an option to see the answer and solution.
Q256
Open questionSelect an option to see the answer and solution.
Q257
Open questionSelect an option to see the answer and solution.
Q258
Open question#include <stdio.h>
#include <stdarg.h>
int f(char c, ...);
int main()
{
char c = 97, d = 98;
f(c, d);
return 0;
}
int f(char c, ...)
{
va_list li;
va_start(li, c);
char d = va_arg(li, char);
printf("%c\n", d);
va_end(li);
}Select an option to see the answer and solution.
Q259
Open questionprog1|prog2Select an option to see the answer and solution.
Q260
Open questionSelect an option to see the answer and solution.