C-Command Line Arguments
C-Command Line Arguments
111. What is the name of the active file pointer of file in Turbo C?
- buffer
- curp
- istemp
- level
112. The first argument argc in main () function counts
- The no. of command line strings including the execution command.
- the no.of command line strings excluding the execution command.
- the no. of lines in a program
- the no. of characters in a program.
113. The argument argv [] is used to
- Count the no. of command line arguments.
- pass strings to the programs including the execution command.
- Pass strings to the programs excluding the execution command.
- Both a and b
115. puts(argv[0])
- Prints the name of the source code file.
- Prints argv
- Prints the name of the executable code file
- prints the number o command line arguments.
116. Which of the following header file must included to use functions with variable number of arguments?
- vararg.h
- stdlib.h
- stdarg.h
- All of the above
117. Find the output
void main ()
{
char s[ ] = '"rama";
strcpy(stdout,s);
strcat (stdout,"shyama");
printf("%s",stdout);
}
void main ()
{
char s[ ] = '"rama";
strcpy(stdout,s);
strcat (stdout,"shyama");
printf("%s",stdout);
}
- rama
- shyama
- ramashyama
- None of these
118. Without function parameter as argudment counter, we can achieve argument counter using
- extern int __argc;
- extern int_argc;
- extern int & argc;
- None of the above
119. Stream oriented files are called as
- Low level files
- High level files
- System oriented files
- All of these