2 spelling and personal stuff cleanup
source | link

What is the differancedifference between string.c_str() and &string[0]?

What are the differences between string.c_str() and &string[0]?

Regarding performance my guess is that &string[0] is a little faster than string.c_str() as it doesn't require a function call.

Regarding safety and stability common sense tells me that string.c_str()string.c_str() should have some checks implemented, but I don't know, that's why I'm here asking :).

What is the differance between string.c_str() and &string[0]?

What are the differences between string.c_str() and &string[0]?

Regarding performance my guess is that &string[0] is a little faster than string.c_str() as it doesn't require a function call.

Regarding safety and stability common sense tells me that string.c_str() should have some checks implemented, but I don't know, that's why I'm here asking :).

What is the difference between string.c_str() and &string[0]?

What are the differences between string.c_str() and &string[0]?

Regarding performance my guess is that &string[0] is a little faster than string.c_str() as it doesn't require a function call.

Regarding safety and stability common sense tells me that string.c_str() should have some checks implemented, but I don't know, that's why I'm asking.

1
source | link

What is the differance between string.c_str() and &string[0]?

What are the differences between string.c_str() and &string[0]?

Regarding performance my guess is that &string[0] is a little faster than string.c_str() as it doesn't require a function call.

Regarding safety and stability common sense tells me that string.c_str() should have some checks implemented, but I don't know, that's why I'm here asking :).