View Single Post
Old Oct 7th, 2006, 9:16 PM   #1
climbnorth
Newbie
 
Join Date: Oct 2006
Posts: 16
Rep Power: 0 climbnorth is on a distinguished road
Calling an undeclared or undefined function in C/C++

Quote:
>C is part of the C++ language. C++ has often been described as a federation of languages which includes C. Anything you can do in C is ok for use with C++.
This is just incorrect. Try c
I am wondering, if a function has not been declared or defined- is it yet a function? I guess my question is: If something has no declaration, and no definition- does it exist? What has no declaration and no definition?

Also, I am wondering the validity of this claim- I know I came across something like this before and it sounds familiar but I can not think of an example for which this applies (maybe I'm missing the point).

I tried: make a function pointer- call the function pointer in both C and C++.
The function itself had not been defined or declared. Both C and C++ had the same result. Then I thought "obviously" but I can't think of a situation as described in the above quote- where behavior for one langauge is different than the other.
climbnorth is offline   Reply With Quote