+ 2

Can we create class in c programming?

I heard about it but i am not clear.

24th Apr 2018, 5:06 PM
Saurabh Sharma
Saurabh Sharma - avatar
5 Antworten
+ 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.
24th Apr 2018, 5:20 PM
Emma
+ 2
Saurabh Sharma no , c is a procedure oriented programming language it doesn't support object oriented programming
24th Apr 2018, 5:12 PM
Pragati Mahajan
Pragati Mahajan - avatar
+ 1
no, we can't
24th Apr 2018, 5:10 PM
P.HIMABINDU
P.HIMABINDU - avatar
+ 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!
24th Apr 2018, 8:34 PM
Emma
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 ).
24th Apr 2018, 5:12 PM
P.HIMABINDU
P.HIMABINDU - avatar