Back
Could someone tell me whether we can declare a function inside structure of C Programming?
No, you cannot define a function inside the structure of C Programming, but you can do so in C++, rather you can have a function pointer in a “struct” in C Language. Wish to learn and master C Programming? Check out the C Language online course from Intellipaat. If you are just starting out in C Programming, watch the following video on C Tutorial for Beginners to get started.
1.2k questions
2.7k answers
501 comments
693 users