0

Is there a difference or pros and cons betweeen those variations?

  1. int main(int argc, char **argv) { return 1; }

  2. int main(int argc, char * argv[]) { return 1; }

4
  • They are both equivalent. I also recommend this main function reference. Commented Sep 10, 2020 at 10:00
  • @yasin: one takes one more keystroke. Commented Sep 10, 2020 at 10:17
  • I know that it is equivalent , so it does the same but are there any pros and cons while using both? Commented Sep 10, 2020 at 10:21
  • One is one more character to type Commented Sep 10, 2020 at 10:21

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.