Can C struct have functions?

No, you cannot define a function within a struct in C .


Leave a Reply

Your email address will not be published. Required fields are marked *