The NULL Terminator - C++ Data Type

C++ examples for Data Type:char array

Description

The NULL Terminator

Demo Code

#include <iostream> 
  
using namespace std; 
  
int main(int argc, char *argv [])
{ 
        char* cStyleString = "CStyleString"; 
        cout << (cStyleString[12] == '\0') << endl; 
  
        return 0; 
}

Result


Related Tutorials