What is FILE reserved word?
Select an option to see the answer and solution.
What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
int main()
{
unsigned int i = -1;
printf("%f\n", fabs(i));
return 0;
}
Select an option to see the answer and solution.
Each call of va_arg . . . . . . . .
Select an option to see the answer and solution.
setvbuf() and setbuf() function controls buffering for the stream.
Select an option to see the answer and solution.
What will be the output of the following C code if following commands are used to run (considering myfile exists)?
gcc -otest test.c
./test < myfile
#include <stdio.h>
int main()
{
char c = 'd';
putchar(c);
}
Select an option to see the answer and solution.
What will be the output of the following C code?
#include <stdio.h>
#include <ctype.h>
int main()
{
int i = 0;
if (isspace(i))
printf("space\n");
else
printf("not space\n");
return 0;
}
Select an option to see the answer and solution.
fputs() function writes a string to a file that only ends with a newline.
Select an option to see the answer and solution.
. . . . . . . . removes the named file, so that a subsequent attempt to open it will fail.
Select an option to see the answer and solution.
Escape sequences are prefixed with . . . . . . . .
Select an option to see the answer and solution.
What is the default return-type of getchar()?
Select an option to see the answer and solution.
Choose the correct description for control string %-+7.2f.
Select an option to see the answer and solution.
What will be the output of the following C code?
#include <stdio.h>
#include <ctype.h>
int main()
{
char c = 't';
printf("is :%c\n", tolower('A'));
}
Select an option to see the answer and solution.
ungetc() is used . . . . . . . .
Select an option to see the answer and solution.
Which mathematical function among the following does NOT require int parameters?
Select an option to see the answer and solution.
Which pre-defined function returns a pointer to the last occurence of a character in a string?
Select an option to see the answer and solution.
Select the correct value of i from given options i=scanf("%d %d", &a, &b);
Select an option to see the answer and solution.
What error will generate if the read and write parameters are not separated by commas?
Select an option to see the answer and solution.
gets() and puts() operate on . . . . . . . .
Select an option to see the answer and solution.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
char str[11] = "hello";
char *str1 = "world";
strcat(str, str1);
printf("%s %d", str, str[10]);
}
Select an option to see the answer and solution.
Only . . . . . . . . character of pushback is guaranteed per file when ungetc is used.
Select an option to see the answer and solution.