aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming - 2
  • The ''puts(argv[0]);'' prints
Multiple choice

The ''puts(argv[0]);'' prints

  1. the name of source file

  2. Argv

  3. the no. of command line arguments

  4. name of executable file

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In C, argv[0] is a pointer to the string containing the name of the program being executed.

Keep practicing — related questions

  • What does the argument count variable store which is paased to main()?
  • What does the below Command Line Argument Does? $#
  • In the following declaration of main, "int main(int argc, char *argv[])", to what does argv[0] usually corr...
  • public class Myfile { public static void main (String[] args) { String biz = args[1]; String baz = args[2];...
  • How will you read executable file ?
  • If I do not provide any arguments on the command line, then the String array of Main method will be?
  • The contents of the which of the files will be interpreted as if entered at the command line?
  • If the argument list is omitted from a for command, where does it take its values from?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy