Could anybody tell me how to call a function with in a structure.
Will it compile????
Pls give one example.
Could anybody tell me how to call a function with in a structure.
Will it compile????
Pls give one example.
No it won't.
You can have a pointer TO a function inside a structure, but it won't call it for you.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.