codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
void f(int); void f(int const) {/*implements above function, not an overload*/} typedef void C(int const); typedef void NC(int); NC *nc = &f; // nc is a function pointer C *c = nc; // C and NC are identical types int main() { puts("Success!"); }
Private
[
?
]
Run code
Submit