Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Command Line Arguments
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; }
0
sample
samp
No output
Show Answer
Correct Answer:
sample
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment