ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Can command line arguments be converted into int automatically if required?
|
Yes
|
|
No
|
|
Compiler Dependent
|
|
Only ASCII characters can be converted.
|
Explanation:
Detailed explanation-1: -Can command line arguments be converted into int automatically if required? Explanation: All command Line arguments are passed as a string. We must convert numerical value to their internal forms manually.
Detailed explanation-2: -A Java application can accept any number of arguments from the command line.
Detailed explanation-3: -1) A command-line argument in Java is a value passed at the time of a program. Explanation: Yes, Command-line arguments are passed at the time of running.
Detailed explanation-4: -int main (int argc, char *argv[]) int i; printf ("total no. of arguments:%d", argc); for (i = 0; i < argc; i++) printf ("%d arguments: %s", i + 1, argv[i]); return 0;
There is 1 question to complete.