What is the main difference between function declaration and function definition in C?
- Declarations contain the function's code
- Declarations specify the function's name
- Definitions declare the function's return type
- Definitions provide the function's implementation
The main difference between function declaration and function definition in C is that declarations specify the function's name and data types, while definitions provide the actual implementation of the function.
Loading...
Related Quiz
- What is the significance of the return type in a function declaration in C?
- What would be an appropriate use case for a union in C?
- What is the purpose of the 'switch' statement in C?
- A ________ pointer is a pointer that still points to a memory location that has been deallocated.
- When reading a text file in C, which function can be used to read data from the file?