You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
212 B
28 lines
212 B
7 months ago
|
class S
|
||
|
{
|
||
|
int (*fnptr0)(double);
|
||
|
// distinct kinds
|
||
|
void* fnptr1;
|
||
|
int fnptr2;
|
||
|
|
||
|
};
|
||
|
|
||
|
void foo(S s)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
typedef void(*callback)(int);
|
||
|
|
||
|
callback fn0(void)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
int(*fn1(void))(int)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void fn2(callback c)
|
||
|
{
|
||
|
}
|
||
|
|