Advertisement



< Prev
Next >



C-Style String in C++






What is String?


String is a nothing but a sequence of characters which is created by using a char array in C++ language. As a string in C++ is constructed by using a char array, hence the characters making up a string are stored in contagious memory locations(just like elements of any type of an array).





How a String is created in C++?


In C++, a string is nothing but a char array and it can be constructed in various ways, some are explained below -:


Please Subscribe

Please subscribe to our social media channels for daily updates.


Decodejava Facebook Page  DecodeJava Twitter Page Decodejava Google+ Page




Advertisement



Notifications



Please check our latest addition

C#, PYTHON and DJANGO


Advertisement