If the following program (Helloprog) is run from the command line as

Loading

โœช Choose the correct option.

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


main (int argc, char*argv[])
{
int i;
i = argv[1] + argv [2] + argv [3];
printf("%d", i);
}

A. 123
B. Error
C. 6
D. None of these

Leave a Comment