C doesn't have strings. It has arrays of characters and all the null pointers, memory leaks, and buffer overflows that go along with that.Are there any advantages that C strings have over C++ strings?
Assuming by "C string" you mean nul-terminated arrays of char values, then the advantage is performance, both in terms of memory and speed. There are a lot of disadvantages, too. So it all depends on what is important to you.Are there any advantages that C strings have over C++ strings?
Then why mention "C"?I think he's asking the difference between the "CString" class:
and the "String" class:
I was thinking he was confused and got "C" from the class name "CString".Then why mention "C"?
|Thread starter||Similar threads||Forum||Replies||Date|
|I||Advantages of AL5815/16 constant current controller.||Analog & Mixed-Signal Design||1|
|R||What search engine do you use? Do any of the "smaller" ones have advantages?||Computing and Networks||7|
|J||Advantages of Negative Power Supplies||General Electronics Chat||32|
|Advantages of cascoding ........how??||General Electronics Chat||9|
|D||Advantages and disadvantages of having a high sink and source for outputs?||Homework Help||4|