Favorite part of C/C++

I was just wondering what your favorite aspects of C or C++ are?
For C the pointers feature never fail to amaze me by their power and destruction if not used properly

For C++, STL (aka Standard Template Library) is what I feel can bring C++ to mainstream success with other programming languages but their templatized code definition syntax still need some polishing to make it more comfortable for other programmers
I second pointers. Direct access to my data (and functions) on the level of the individual byte is so useful, letting me run around my data freely and trusting me with it.
For me, STL containers and the algorithms.
Moschops wrote:
letting me run around my data freely and trusting me with it.


Hmmm... you may want to revise the above sentence once you got bitten real bad one fine day :P

manasij7479 wrote:
For me, STL containers and the algorithms.


How about C ?
Hmmm... you may want to revise the above sentence once you got bitten real bad one fine day :P


That has happened many times and it will happen again; every time it would not have happened if I had been paying attention and designing the programme properly. It's a risk that I find well worth the benefits. Few things annoy me more in other languages than not being able to just reach out and grab my data.

Also, I like using assembly in the code.
closed account (1vRz3TCk)
I think I'm like Moschops, I like its low level...ness. I like being able to see what is going on and affect it if needs be.
How about C ? 

The ability to use pointers to access array elements and structure members(by offset, I mean ).
I like how i can access data with your program, such as reading BMPs, listening to WAVs and OGGs, making whatever you want, including games, apps with a GUI... Having learnt C/C++ means OWNING A PC. To me.
closed account (967L1hU5)
cout & cin
closed account (zb0S216C)
For me, it's the ability to control user-allocated resources, exceptions, functions, and its ability manipulate individual bits with bit-fields and bit-flags.

Wazzak
The power of metaprogramming, and the fact that I continue learning a lot of things in the language after more than 3 year of exprerience.
templates - in general. Not just STL, but the ability to write your own template functions and classes.

The ability to write either Object oriented code with classes or to write legacy style c-code without classes.

The ability to control memory allocation and deallocation. I prefer control over the automated garbage collectors.
Flexibility.
I know this sounds silly but I like functions even though functions exist in other languages. I just like the idea that I can enter a variable and let the function do everything for me and then spit out a new value for the variable for me to use.
Topic archived. No new replies allowed.