C-Command Line Arguments
C-Command Line Arguments
51. The fcloseall() function
- Closes all filesl except stdprn and stderr
- Closes all files except stdin and stdout
- It returns the name of the last file closed
- None of these
52. Stream oriented files are accessed through
- system call
- Library functions
- Linker
- Loader
53. What are the two predefined FILE pointes in c?
- stdout and stderr
- console and error
- stdout and stdin
- stdio and stderr
56. A file pointer is
- A stream pointer
- A buffer pointer
- A pointer to a FILE data type
- All of the above
57. Find the output
#include "stdio.h"
void main( )
{
int x=10;
char ch[10];
sprintf(ch,"%d",x);
printf("%s",ch);
}
#include "stdio.h"
void main( )
{
int x=10;
char ch[10];
sprintf(ch,"%d",x);
printf("%s",ch);
}
- 25
- Garbage value
- Compilation error
- None of these
59. The function used for writing a character into a file is
- putc()
- fputc()
- fputchar()
- Both a and b