Stores a name in a character pointer. - C++ Data Type

C++ examples for Data Type:char array

Description

Stores a name in a character pointer.

Demo Code

#include <iostream>
using namespace std;
void main()//from www.java  2s . c o  m
{
   char *c="Bettye Lou Horn";
   cout << "My sister's name is " << c << "\n";
   return;
}

Result


Related Tutorials