Default Parmeters for Function/Struct in C

Hello Everyone!

I'm really not sure if this issue is compiler dependent, or language dependent. I remember that in C++, you can declare a function header with default parameters, so can you do with classes. Now, I don't think that this is permissible in C, but what about Structs?

Thanks!
you can't have default parameters for classes or structs. You can provide a constructor with default parameter. In C a constructor doesn't exists
Topic archived. No new replies allowed.