Science, asked by naveensrichakra9498, 1 year ago

Is it possible to define a formula in C struct?

Answers

Answered by salarhysain
0

No, you cannot define a function within a struct in C. You can have a function pointer in a struct though but having a function pointer is very different from a member function in C++, namely there is no implicit this pointer to the containing struct instance.

Similar questions