+ 1

How can I define main function in C language while taking command line input...?

This means defining main function of a command line input program.

12th Sep 2020, 4:14 PM
Rishabh Deo
Rishabh Deo - avatar
4 ответов
+ 2
12th Sep 2020, 4:17 PM
Jayakrishna 🇮🇳
+ 3
int main(int argc, char *argv[]) One standard form of the head of function `main`, which is called automatically, in practice after initialization of namespace scope variables. The arguments `argc` and `argv` can be used to access command line arguments and the name that the program is invoked with. Since they're not used in this program they will instead possibly cause undesired warnings. It's better to omit them when not used, i.e. ⋮ int main()
12th Sep 2020, 4:38 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
int main(int argc, char *argv[]) OR int main(int argc, char **argv) visit here for detailed explanation 👇 https://www.geeksforgeeks.org/command-line-arguments-in-c-cpp/amp/
12th Sep 2020, 4:18 PM
Arsenic
Arsenic - avatar
+ 1
Could you please explain it..?
12th Sep 2020, 4:18 PM
Rishabh Deo
Rishabh Deo - avatar