C Programming - Command Line Arguments - Discussion
Discussion Forum : Command Line Arguments - Yes / No Questions (Q.No. 2)
2.
If the different command line arguments are supplied at different times would the output of the following program change?
#include<stdio.h>
int main(int argc, char **argv)
{
printf("%d\n", argv[argc]);
return 0;
}
Discussion:
25 comments Page 3 of 3.
Neha said:
1 decade ago
Thank you sundar.
DEepika said:
1 decade ago
Excellent Sundar.. :)
Meenu said:
1 decade ago
Thank you sundar.
Arun said:
1 decade ago
Good explanation sundar keep going.
Parag said:
1 decade ago
@Sundar
Nice ans. Thanks.
Nice ans. Thanks.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers