#Variadic Functions

9 messages · Page 1 of 1 (latest)

rigid nebula
#

when i compile my code, i get a "error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
printer_t funcs[] = {

misty mistBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

rigid nebula
#

How do i fix it?

low blaze
#

Otherwise, I think it's the x = 0 line

#

No declarations can come after code in c90

rigid nebula
#

@low blaze
My bootcamp uses a code linter and various gcc flags to check the structure of our code before they grade us
Even if gcc runs the code, if i don't use the flags, i won't get scored
I'll check the x = 0 part

#

It still gives the same error

misty mistBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.