C-Command Line Arguments
C-Command Line Arguments
22. The 'w' mode of fopen( )
- it returns 0 if disk spce isavailable.
- it returns 1 if disk space is available.
- it returns offset address if disk space is available.
- None of these.
23. the process of establishing a connection between the program and a file is called
- Opening a stream
- Opening a file
- Creating a file
- All of the above
24. the mode "ab+" is used as
- To open a binary file
- to open a binary file in append mode.
- To open a binary file in write mode
- None of these
25. What this code do?
#include "stdio.h"
void main ( )
{
FILE *p;
p=fopen("xyz.txt",'w');
}
#include "stdio.h"
void main ( )
{
FILE *p;
p=fopen("xyz.txt",'w');
}
- This can open xyz text file in write mode
- This can open xyz text file in write mode and append at the end
- This can open xyz text file in read mode
- Compilation error
26. The mode "r+" can be used as
- To read, write and modiy existing data of a text file.
- to read, write and modify existing data of a binary file.
- Only to read the text file.
- Only to read the binary file.
28. On successful execution of fputc() returns
- An integer representing the character written
- Current file position
- Current cursor position
- None of these