main()
should be
int main()
In C89, the default return type is assumed to be int
, that’s why it works.
More Related Contents:
- warning: suggest parentheses around assignment used as truth value [closed]
- my code does not work and I don’t know why ;-;
- warning: implicit declaration of function
- How to disable GCC warnings for a few lines of code
- What are the valid characters for macro names?
- What does i = (i, ++i, 1) + 1; do?
- What does “control reaches end of non-void function” mean?
- Compiler warning – suggest parentheses around assignment used as truth value
- Message “warning: implicit declaration of function”
- gcc failing to warn of uninitialized variable
- Compiler warning for function defined without prototype in scope?
- why am I not getting an “used uninitialized” warning from gcc in this trivial example? [duplicate]
- Can GCC not complain about undefined references?
- Finding target sum of two numbers in array
- Including one C source file in another?
- What does dot (.) mean in a struct initializer?
- Can gcc output C code after preprocessing?
- How to set include path in xcode project
- Can I rely on malloc returning NULL?
- Waiting for all child processes before parent resumes execution UNIX
- Are “malloc(sizeof(struct a *))” and “malloc(sizeof(struct a))” the same?
- What is double star (eg. NSError **)?
- Find the Size of integer array received as an argument to a function in c [duplicate]
- Deleting a middle node from a single linked list when pointer to the previous node is not available
- How does srand relate to rand function?
- Is calloc(4, 6) the same as calloc(6, 4)?
- Difference between C standard library and C POSIX library
- main() function in C
- Returning a struct pointer
- Swift: How to call a C function loaded from a dylib