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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *