int main() { int num = 5; int *ptr = # printf( "ptr stores address: %p\n" , ptr ) ; printf( "*ptr dereferences value: %d\n\n" , *ptr ) ; printf( "The num value is %d\n" , num ) ; twice(ptr); printf( "The num value is now %d\n", num ) ; thrice( ptr ) ; printf( "And now the num value is %d\n", num ) ; return 0; }
// This instantiation of the "thrice" template function with a "float" type // will have an `optnone` attribute because the template definition was // affected by the pragma. float container2 (float par) { return thrice(par); }
int container3 (int par) { return thrice(par); }