Program that lists its command line arguments - C++ Function

C++ examples for Function:main function

Description

Program that lists its command line arguments

Demo Code

#include <iostream>

int main(int argc, char* argv[])
{
  for (int i {} ; i < argc ; ++i)
    std::cout << argv[i] << std::endl;
}

Related Tutorials