Interview Questions and Answers :: Cisco
Home > Experience Archives > Cisco > Interview Question Set 7 > Discussion
3. What's wrong with this program?
#include
int
main( int argc, char const * argv ) {
for( int i = 0; i < argc; ++i ) {
printf("%s\n", argv[i] );
}
}
Can you tell me what this program will do when I run it like this:
1 2 3 4
int
main( int argc, char const * argv ) {
for( int i = 0; i < argc; ++i ) {
printf("%s\n", argv[i] );
}
}
Can you tell me what this program will do when I run it like this:
Answer:
No Discussion on this question yet!
No Discussion on this question yet!