Which is the correct way of declaring main() when it receives comrnand

Loading

โœช Choose the correct option.

Which is the correct way of declaring main() when it receives comrnand line arguments ?

A. main (int argc, char argv[])
B. main (argc, argv)
int argc; char*argv[];
C. main ()
{
int argc; char*argv[];
}
D. None of the above

Leave a Comment