Correct Answer : 4 and 1
Explanation : The size of a character literal is 4 in case of C but it is one in case of C++. You can do printf(“%d”, (int)sizeof(‘a’)); in both C and C++ to check this.
Correct Answer : All of the above
Explanation : Any of the above signature can be used while using command line arguments in C++ programs
Correct Answer : argv[0]
Explanation : The first string in the list of command line arguments represents the name of the program which can be accessed by using argv[0].
Correct Answer : Number of command line arguments
Explanation : The first argument of the main() function represents the number of command line arguments that are passed.