bhadmanathan
Junior Member level 1
I read the tutorial about function pointer. I understood the syntax and concept. But..
Instead of calling a function indirectly, we can simply call like A();
Is there anything in terms of memory....?
Thanks in advance
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 void A() { printf("HELLO"); } void B(void (*p)()) { p(); } main() { B(A); or A(); }
Instead of calling a function indirectly, we can simply call like A();
Is there anything in terms of memory....?
Thanks in advance
Last edited by a moderator: