Is it possible to define a formula in C struct?
Answers
Answered by
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
Social Sciences,
7 months ago
English,
7 months ago
English,
7 months ago
Chemistry,
1 year ago
English,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago