Horje
what is handling null terminated string in c++ Code Example
what is handling null terminated string in c++
#include<iostream>
using namespace std;
main() {
   string my_string = "This is a sample text";
   cout << my_string << endl;
   my_string = "This is a sam\0ple text"; //check the \0
   cout << my_string;
}
//Outputs
/*This is a sample text
This is a sam*/




Cpp

Related
c++ program to convert kelvin to celsius Code Example c++ program to convert kelvin to celsius Code Example
distructor of the node of the link list Code Example distructor of the node of the link list Code Example
c++ std map initializer list Code Example c++ std map initializer list Code Example
insert into a vector more than once c++ Code Example insert into a vector more than once c++ Code Example
find min and max in array c++ Code Example find min and max in array c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7