Thread: C++/ C question
View Single Post

Member Since: Jan 27, 2009
Posts: 8
njdevilfan26 is on a distinguished road

njdevilfan26 is offline
What is the output of the following if its command line arguments were: sample 1 5 7

Main(int argc, char *argv[]) {
Int x;
X = argv [1] + argv [2] + argv [3];
Printf (%d, x);

I'm not sure what the argv[1] etc... does so does anyone know the output?
QUOTE Thanks