I want to implement methods in C language. I know C language doesn't support Object Oriented Programming. But is there a way to do it? Or is it can't be done? Because it need to done by C.
struct student
{
int name;
int address;
void speak()
{
/* code */
}
};
int main()
{
//code ..
student.speak();
}
This is how my code look like.