https://github.com/lucaslarson/appleparameter
π what is πππππ[π] of πππΒ ππππ()?
https://github.com/lucaslarson/appleparameter
apple-parameter c hacktoberfest lucaslarson
Last synced: about 2 months ago
JSON representation
π what is πππππ[π] of πππΒ ππππ()?
- Host: GitHub
- URL: https://github.com/lucaslarson/appleparameter
- Owner: LucasLarson
- License: other
- Created: 2020-04-26T18:54:29.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2026-04-21T15:53:41.000Z (3 months ago)
- Last Synced: 2026-04-21T17:43:16.240Z (3 months ago)
- Topics: apple-parameter, c, hacktoberfest, lucaslarson
- Language: Shell
- Homepage: https://git.io/AppleParameter
- Size: 253 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Funding: .github/funding.yml
- License: license.adoc
- Code of conduct: .github/code_of_conduct.md
- Codeowners: .github/codeowners
Awesome Lists containing this project
README
# AppleParameter
[](https://gitpod.io/#https://github.com/LucasLarson/AppleParameter)
[](https://gitter.im/LucasLarson/community)
[](https://www.paypal.me/LucasLars)
[](https://www.codefactor.io/repository/github/lucaslarson/appleparameter)
## 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]`?