programming-C or C++

Let me make this clear. C++ is a wonderful language. I in no way mean/meant to bash C++.

The reason is that C++ can enable some bad behavior (by inexperienced programmers)

That's true of all programming languages including C. It's not a reason to choose one language over the other.

The OP asked C or C++ so my answers were in relative terms. Also, I wasn't saying it was a reason to choose one language or another in general. I was saying that its a good reason to choose to learn C first (as opposed to C++)

C is more rigid

Rigid? C? Compared to what? C++?

yes compared to C++. The OP was asking about one vs the other.