Fun With C99 Syntax
But because these are anonymous variables, you can take the address of them:
int * iPointer = &(int) {3};This can be useful for some Core Audio APIs, such as
AudioUnitSetProperty
. Typically you create a variable for the sole purpose of taking the address of it…
1 Comment RSS · Twitter
May 15, 2010 4:13 PM
Cute trick - but I've always been annoyed that the AudioUnit APIs encourage such byzantine constructs!