1,706
Loading...
Uploader Comments (AppleProgramming)
see all
All Comments (15)
-
Ohhh, so the header file just has the declaration of the function and the .c file has a declaration and the actual function. ok Thanks so much!
-
@AppleProgramming Thanks Buddy... Your series are awesome!!!
Loading...
But where do you actually define the function. Is it in the header file that you put in what should be in the function or the main.
chevon1920 1 week ago
@chevon1920 You define the names and parameters of your function in the header file. Your actual implementation of how the method works would be in a .c file which includes this header file.
AppleProgramming 1 week ago
Why do we need function prototypes anyway?
RMH1565 1 week ago
@RMH1565 If you look in the comments of the functions tutorial this will probably answer your question.
AppleProgramming 1 week ago
@AppleProgramming
How to add functions in the main files from the header files. I mean you created the function definition but what about the body part of the function where do you define it......
tuhinbhatt1 6 months ago
@tuhinbhatt1 You can define it either in a new C file or the same file (main.c) that the main method is in.
AppleProgramming 6 months ago