Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

char * in c++

#include <iostream>
using namespace std;

int main() 
{
	char* name = "Raj";	//can store a sequence of characters.
	const char* school = "oxford";
	//school[0] = 'O';		//gives runtime error. We can't modify it.
	cout << name<<" "<<school;
	
	return 0;
}
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #char
ADD COMMENT
Topic
Name
3+8 =