C Programming - Command Line Arguments
Exercise : Command Line Arguments - Find Output of Program
- Command Line Arguments - General Questions
- Command Line Arguments - Find Output of Program
- Command Line Arguments - Point Out Correct Statements
- Command Line Arguments - True / False Questions
- Command Line Arguments - Yes / No Questions
21.
What will be the output of the program (myprog.c) given below if it is executed from the command line?
cmd> myprog one two three
cmd> myprog one two three
/* myprog.c */
#include<stdio.h>
#include<stdlib.h>
int main(int argc, char **argv)
{
int i;
for(i=1; i<=3; i++)
printf("%u\n", &argv[i]);
return 0;
}
If the first value printed by the above program is 65517, what will be the rest of output?
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers