Friday, 23 August 2013

How do you declare multiple function pointers in a single line without typedeffing?

How do you declare multiple function pointers in a single line without
typedeffing?

More of a matter of curiosity than anything. Basically I want to know if
it's possible to do something like int a = 1 , b = 2; with function
pointers, without having to resort to typedefs. I've tried void (*foo =
NULL, *bar = NULL)(int). Unsurprisingly, this didn't work.

No comments:

Post a Comment