int main(int var, char *argv)
int main(char *arv, int arg)
int main(char c,int v)
int main(int v,char c)
Currently there is no PrepInsta Explanation. Did you know?
You can also submit your own version of explanations under user explanation section and also view other submitted explanations by other users.
Please login to submit your explanation
You can check your performance of this question after Login/Signup
argument constant, argument variable
argument count, argument vector
argument constant, argument vector
argument count, argument variable
Single Dimensional Array
May vary from one OS to another
Depends on the Number of arguments
argc * 2
argc – 1
argc + 1
argument passed by user
Array of pointers
pointer to a character array
Array of character pointers
Array of Strings
What will be the output of the following program if argument passed to command lines are : prog 1 4 2
int main(int argc, char *argv)
j = argv + argv – argv;
None of these
As different data types can\'t be added .
Pointers to first two command line argument supplied.
File Name and pointer to first command line argument supplied.
Program Name and Pointer to the 1st argument.
None of these.
argv holds the name of the program.
argv points to the first command line argument and argv[n] points last argument.
Number of Arguments
Number of Arguments – 1
Number of Arguments + 2
Number of Arguments + 1
Please login to report
Buy TCS Prog. Logic (C MCQ) Paid Materials
Join TCS Online Classes
Personalized Analytics only Availble for Logged in users
Analytics below shows your performance in various Mocks on PrepInsta
Your average Analytics for this Quiz
August 7, 2019
Login/Signup to comment