What is the difference between a string constant and a constant string?

Questions by ykbharat   answers by ykbharat

Showing Answers 1 - 3 of 3 Answers

YRP

  • May 7th, 2007
 

A string constant consists of a sequence of characters enclosed in
double-quote marks.  For example:

char *p="hello";

constant string is

const char *p="hello";


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions