Regarding strings
|
Go4Expert Member
|
|
| 5Sep2007,19:26 | #1 |
|
hi all....i wanted to know wat is a string(other than being a array of characters,define it in some other way)......then why do we put '\0' at the end of string.....and are there diff types of strings.....
|
|
Team Leader
|
![]() |
| 5Sep2007,19:42 | #2 |
|
Code:
myString [] = "This is a string". The string class available in C++ is another thing entirely. |
|
Go4Expert Member
|
|
| 5Sep2007,19:50 | #3 |
|
hey thanks...but i wanted to know tat do we have diffreent types of strings in C itself for example like we have *file pointers* nd *function pointers*....
|
|
Team Leader
|
![]() |
| 5Sep2007,21:44 | #4 |
|
A C string is a C string. There is only one kind of 'string', and that is composed of chars. You might say, "I have a long string of integers", and that would be a perfectly good English statement. However, the use of the word "string" does not imply a C entity, merely a verbal communication. You're trying to complicate something that's simple.
|

