Assalam o Alikum my question is that what is the difference between character array and string. my instructor is use
char str [50] instead of string str. and i can not understand what is difference between them.
moaz.amin.37
-12
Junior Poster
Recommended Answers
Jump to PostA character array is just what it sounds like, it's a raw array (sequence of contiguous memory) of characters (1 byte numbers that are interpreted as characters when printed on a screen) with the end marked with a 0 character (null-terminated strings). That's about all you get with a character …
All 3 Replies
L7Sqr
227
Practically a Master Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
moaz.amin.37
-12
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.