I have a file name fun.c contain the fuction to add two number (addnum(a,b)).Now I create another file name callfunc.c.Here I want to call the function (addnum(a,b)) from the file fun.c. How can I do that?.
jgehlot09
0
Newbie Poster
Recommended Answers
Jump to PostI think that you have to make a header file containing that function.
I would not quote me on this.
You might want to find one of the more advanced C users.
Hope this helps!
All 4 Replies
Begginnerdev
256
Junior Poster
WaltP
commented:
How can it possibly help if you don't know the answer?
-2
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
deeep
6
Newbie Poster
jephthah
commented:
sorry. no.
+7
BestJewSinceJC
commented:
I think jep meant to give you the orange!!
-1
jephthah
1,888
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.