C language : Objects and variable variables? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

C language : Objects and variable variables?

The C language is known as a mid-level language. But i took a look at it, and it has lots of features that we have in other high-level languages.. such as Structures(almost identical to objects) pointers (Same as $ in PHP) Getting the actual date and the actual time opening and closing files(sameway as PHP) Dynamic memory allocation. it's possible making GUI applications (Through GTK+ for exemple).. and much more the C language is much more of what people are used to know.

16th Jun 2017, 7:55 PM
Welliton Malta
Welliton Malta - avatar
3 Answers
+ 5
C is a great language and many years ago I read an excellent paper on "OOC" as in using C in an OO manner. However function pointers get messy and structs don't outright support "methods"(functions) as members (aside from aforementioned pointer hackery). As fun as it is to OO in C, the language is mainly, though not completely, procedural and any serious project should use the language in its correct paradigm or you may as well use C++.
17th Jun 2017, 12:55 AM
Jamie
Jamie - avatar
+ 1
C is a good language it is useful, especially to make C++ more effective.
16th Jun 2017, 8:18 PM
Manual
Manual - avatar
+ 1
yes @Manual. or when you don't need a too fancy application, C is lighter too. I read part of a book about C and i'm even more intrested on it now
16th Jun 2017, 8:22 PM
Welliton Malta
Welliton Malta - avatar