C Programming :: Command Line Arguments - Discussion
Home > C Programming > Command Line Arguments > MCQs Questions Discussion
7 / 15
If the following program i.e "myprog" is run from the command line as "a.out" . What would be the output?
#include
void main (int argc, char*argvl))
{
int i;
for (i = 1; i < argc; i++)
print[ ("%s", argv[i]);
}
void main (int argc, char*argvl))
{
int i;
for (i = 1; i < argc; i++)
print[ ("%s", argv[i]);
}
A*c
BList of all .c files in the current directory
C"*c"
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!