LucasLarson / AppleParameter

🍎 what is πšŠπš™πš™πš•πšŽ[𝑛] of πš’πš—πšΒ πš–πšŠπš’πš—()?

Home Page:https://git.io/AppleParameter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AppleParameter

Gitpod Ready-to-Code Gitter chat Donate CodeFactor

What is apple[0] of int main()?

In the C family of languages, there are typically zero or two β€“ or sometimes three β€“ parameters on the int main() function. The first two are usually argc and argv. When there’s a third, it’s often envp.

  • What happens when you add a fourth parameter apple?
  • What if your compiler has a defined macro __APPLE__?
  • What if apple’s not an int:
    • What if it’s a double pointer char **apple?
    • What if it’s a two-dimensional array char apple[][]?
    • What if the apple parameter’s an array of pointers char *apple[]?
      • What is the content of apple[0]?

About

🍎 what is πšŠπš™πš™πš•πšŽ[𝑛] of πš’πš—πšΒ πš–πšŠπš’πš—()?

https://git.io/AppleParameter

License:Other


Languages

Language:Shell 59.1%Language:C 29.2%Language:CMake 11.7%