Home › Forums › C Programming › Pointer to a Vargs function › Reply To: Pointer to a Vargs function
January 13, 2008 at 11:22 pm
#3317
shalizy
Participant
What’s the problem!!!!!
C
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | int MyPrint( . . . ) { cout<<" Inside MyPrint"<<endl; } int (*ptr2MyPrint ) ( . . . ); int main() { ptr2MyPrint = Myprint; (ptr2Myprint) ( 2, 3, "Hi"); (ptr2Myprint) ( "ImFine", 13, 3.65,"Hello"); (ptr2Myprint) ( 2.78); return 0; } |
It’s working!!!!!