Computer Science, asked by Chin7, 1 year ago

different between string and array

Answers

Answered by Mamtaminhas
1
In C, a string is just an array of characters (type char), with one wrinkle: a C string always ends with a NUL character. The value of an array is the same as the address of (or a pointer to) the first element; so, frequently, a C string and a pointer to char are used to mean the same thing.

Chin7: ty
Answered by Anushka0408
2
hope it helps:)......................
..
Attachments:

Chin7: thanks
Similar questions