My teacher has introduced me to Member functions. Unfortunately the example he showed me was for C++. I was wondering if there was a similiar funcionatility in C.
If so, can someone show me an example?
example C++
Code:struct test { int smile; void get_info(); }; int main() { struct test test; test.smile = 3; smile.get_inf(); return 0; } void smile::smile() { cout<<smile; }