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
Show Answer
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.
Show Answer
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
Show Answer
114. What is the file extension for font files?
  • .font
  • .txt
  • .bgi
  • .chr
Show Answer
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.
Show Answer
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
Show Answer
117. Find the output
void main ()
{
char s[ ] = '"rama";
strcpy(stdout,s);
strcat (stdout,"shyama");
printf("%s",stdout);
}


  • rama
  • shyama
  • ramashyama
  • None of these
Show Answer
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
Show Answer
119. Stream oriented files are called as
  • Low level files
  • High level files
  • System oriented files
  • All of these
Show Answer
120. What type is argv?
  • char *
  • int
  • char **
  • None
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test