Operator overloading in C? -
is possible operator overloading or similar (inline function?) in c? know c not support class
, make operator struct
?
i cannot find online, because google ignore '+' if try google c++ results.
no, can't in c. use c++ if want overload operators.
you can put function pointers inside structure if want sort of c++ object-like behaviour.
Comments
Post a Comment