1.

Can we declare function inside structure of C Programming?

Answer»

Explanation:

INo, 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.

. o



Discussion

No Comment Found