A function declaration without a prototype is deprecated in all versions of C

Joined
Jan 15, 2024
Messages
1
Reaction score
0
Hi There folks,

Someone can help me out here?
I am learning how to program "C" on Xcode and it is showing this problem all the time.
maybe someone knows what the problem is?

Thanks, Peter.


Screenshot 2024-01-15 at 14.20.36.png
 
Joined
Feb 12, 2025
Messages
1
Reaction score
0
this a really old question, but is the empty argument list.

the compiler is expecting:

int main(void)
{
...
}
 
Joined
Sep 4, 2022
Messages
158
Reaction score
16
Hello luchifer ,

it could be the parser for syntax throwing an error.


C:
// try with 'hard' semantic :

int main(){ // "{"" is next to the closing )    , the compiler won't warn anymore.

    // all code lines before achieving by 'return' instruction.
    return 1;
    // as you define main() function by 'integer Type', you must "return 0|1" ;

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,260
Messages
2,571,038
Members
48,768
Latest member
first4landlord

Latest Threads

Top