H
howa
#include<iostream>
using namespace std;
int main(int argc, char* argv[]) {
cout<<sizeof(argv[1]) / sizeof(argv[1][0]) ;
return 0;
};
to run, e.g.
../a.out helloword, it prints out '4'
what does this program do?
thanks...
using namespace std;
int main(int argc, char* argv[]) {
cout<<sizeof(argv[1]) / sizeof(argv[1][0]) ;
return 0;
};
to run, e.g.
../a.out helloword, it prints out '4'
what does this program do?
thanks...