Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in C Programming by (44.4k points)

Could someone tell me whether we can declare a function inside structure of C Programming?

1 Answer

0 votes
by (98.9k points)

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.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...