Top

Discussion

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

/* sample.c */
#include

int main(int argc, char **argv)
{
    printf("%s\n", argv[argc-1]);
    return 0;
}

 

  • A.sample
  • B.samp
  • C.No output

Answer: B

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment