Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Void parameters in function declaration #81

Open
ShivamSarodia opened this issue Apr 11, 2018 · 0 comments
Open

Void parameters in function declaration #81

ShivamSarodia opened this issue Apr 11, 2018 · 0 comments
Labels

Comments

@ShivamSarodia
Copy link
Owner

Void parameters in function declaration behave oddly right now.

int main(void) { }

produces an error of "function definition missing parameter name", and int func(void a, void b) { } is accepted by the compiler and does who-knows-what. The behavior of void in function declaration/definition parameters should be normalized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant