+ 1
String constant
what is string constant. codeblock says expected ; before string constant but i am unable to get this
4 Answers
+ 3
try: const x = "value"; you are getting the error because const is already a data type. by initializing the variable this way, the variable will be treated as a never changing string
+ 1
Post your code here.
+ 1
ya
0
You forgot mention ; at the end of statement of declaring the string.
Ex: char str[15] ;