Sail E0 Webinar
Question


What will be the output of the program if it is executed like below?
cmd> sample


/* sample.c */
#include<stdio.h>
int main(int argc, char **argv)
{
printf("%s\n", argv[argc-1]);
return 0;
}
Options:
A .  0
B .  sample
C .  samp
D .  No output
Answer: Option B



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers