+ 2
Can we create class in c programming?
I heard about it but i am not clear.
5 Answers
+ 5
You can do naughty things like this:
https://code.sololearn.com/cDCUlW43Vb8a/#c
However, this is a hack... and not recommended. Just a fun demonstration.
+ 2
Saurabh Sharma
no , c is a procedure oriented programming language it doesn't support object oriented programming
+ 1
no, we can't
+ 1
I've now added more to the 'classes in C' project. I've now added private as an operator.
https://code.sololearn.com/cDCUlW43Vb8a/#c
This is all just for fun of course!
0
out as "C with classes" back then...). But you can use the standard C library in C++ code, even if it is often not considered good practice (where C++ has its own, higher level constructs, e.g. cout vs printf ).