C Programming MCQ

1:

 puts(argv[0]);
 

A.

prints the name of the source code file

B.

prints argv

C.

prints the number of command line arguments

D.

prints the name of executable code file

 

Answer : D

Explanation :

arg [0] is a pointer to the executable code file name. So, puts (argv [0]) ; prints it.

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.