We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following answer is only correct for C23.
linkedin-skill-assessments-quizzes/c-(programming-language)/c-(programming-language)-quiz.md
Lines 244 to 251 in fb47035
Before C99, all four have been optional. Starting with C99, the parameter names and the number of parameters are still optional.
The following declaration declares the function with an unknown number of parameters (but without declaring a prototype):
int f();
With C23 this was changed to be equivalent to the following declaration:
int f(void);
In C17, for example, this is perfectly valid while it does not compile with C23:
int f(); int f(int x) { return x*2; }
See also: cppreference
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following answer is only correct for C23.
linkedin-skill-assessments-quizzes/c-(programming-language)/c-(programming-language)-quiz.md
Lines 244 to 251 in fb47035
Before C99, all four have been optional. Starting with C99, the parameter names and the number of parameters are still optional.
The following declaration declares the function with an unknown number of parameters (but without declaring a prototype):
With C23 this was changed to be equivalent to the following declaration:
In C17, for example, this is perfectly valid while it does not compile with C23:
See also: cppreference
The text was updated successfully, but these errors were encountered: