[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Command Line Arguments - Discussion

Home > C Programming > Command Line Arguments > MCQs Questions Discussion

2 / 15

If the following program (Helloprog) is run from the command line as HelloProg 1 2 3. what would be the output?

#include<stdio.h>
main (int argc, char*argv[])
{ 
int i;
i = argv[1] + argv [2] + argv [3];
printf("%d", i);
}

A123

BError

C6

DNone of these

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here