Which function is used to write a character to a file in C?
Select an option to see the answer and solution.
What happens if you try to open a file in 'r' mode that doesn't exist in C?
Select an option to see the answer and solution.
How do you read a string from a file in C?
Select an option to see the answer and solution.
What does the 'remove' function in C do?
Select an option to see the answer and solution.
In C, what is the purpose of the 'fflush' function?
Select an option to see the answer and solution.
Which function is used to create a new directory in C?
Select an option to see the answer and solution.
How do you write an integer to a file in C?
Select an option to see the answer and solution.
What is the return value of 'putc' if it fails to write a character to a file in C?
Select an option to see the answer and solution.
Which function is used to read and write data in binary mode in C?
Select an option to see the answer and solution.
What is the purpose of the 'fileno' function in C?
Select an option to see the answer and solution.
The given statement FILE *fptr;
Select an option to see the answer and solution.
The function fprintf is used in the program ...........
Select an option to see the answer and solution.
What are the two predefined FILE pointers in C?
Select an option to see the answer and solution.
Which one of the following is valid for opening a read-only ASCII file?
Select an option to see the answer and solution.
Choose the correct difference between getc() and fgetc().
Select an option to see the answer and solution.
. . . . . . . . is an optional argument that gives the maximum number of characters to be read.
Select an option to see the answer and solution.
What will be the output of the following C code?
#include <stdio.h>
struct p
{
struct p *next;
int x;
};
int main()
{
struct p* p1 = malloc(sizeof(struct p));
p1->x = 1;
p1->next = malloc(sizeof(struct p));
printf("%d\n", p1->next->x);
return 0;
}
Select an option to see the answer and solution.
If the conversion characters of int d, i, o, u and x are preceded by h, it indicates?
Select an option to see the answer and solution.
Which among the following mathematical function do not have a "double" return-type?
Select an option to see the answer and solution.
Which of the following function compares 2 strings with case-insensitively?
Select an option to see the answer and solution.