Parameters of main( )
In this lesson, you will learn about the parameters of main( ).
We'll cover the following
Parameters of main()
#
It is common for programs to take parameters from the environment that started them. For example, we have already passed a file name as a command-line option to ls
in the previous lesson. There are two command-line options in the following line:
# ls -l deneme
-rwxr-xr-x 1 acehreli users 460668 Nov 6 20:38 deneme
Get hands-on with 1400+ tech skills courses.