C++ char array Stores a name in a character pointer.

Description

C++ char array Stores a name in a character pointer.

#include <iostream>
using namespace std;
void main()/*from  w  w  w  .j a v a2 s  . com*/
{
   char *c="Bettye Lou Horn";
   cout << "My sister's name is " << c << "\n";
   return;
}



PreviousNext

Related