4 ms·
> an implicit declaration occurs (the erroneous int bar() I still don't understand; why does the implicit declaration assume int bar() is the signature when ba
by lukas099 5y ago
> an implicit declaration occurs (the erroneous int bar()
I still don't understand; why does the implicit declaration assume int bar() is the signature when bar is being passed an int and returning a value to a char?
- Jtsummers 5y agoBecause C doesn't do type inference.
- Liquid_Fire 5y agoYou don't need type inference to handle this correctly, you just need to wait until you've parsed the rest of the file and seen the signatures of all functions.