Pages

Wednesday, September 1, 2010

According to ANSI specifications which is the correct way of declaring main when it receives command-line arguments?
A.
int main(int argc, char *argv)
B.
int main(argc, argv)
int argc; char *argv;
C.
int main()
{
    int argc; char *argv;
}
D.None of above

2 comments:

  1. According to ANSI specifications
    the Declaring main when it receives command-line arguments?is


    int main(int argc, char *argv)

    ReplyDelete