- Joined
- Jan 27, 2009
- Messages
- 8
- Reaction score
- 0
- Points
- 1
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?
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?