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 anint:- What if itβs a double pointer
char **apple? - What if itβs a two-dimensional array
char apple[][]? - What if the
appleparameterβs an array of pointerschar *apple[]?- What is the content of
apple[0]?
- What is the content of
- What if itβs a double pointer