Initialized string - C++ Data Type

C++ examples for Data Type:char array

Description

Initialized string

Demo Code

#include <iostream>
using namespace std;
int main()//  www .j av a  2  s.c  o m
{
   char str[] = "Farewell! thou art too dear for my possessing.";
   cout << str << endl;
   return 0;
}

Result


Related Tutorials