Can C struct have functions?

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

Sizin İçin Seçtik  What is the difference between a union and a struct?

Leave a Reply

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