I have a question.
How to assign a value to a string variable.
In pascal I did it as follows:
Code: Select all
var str:array[5] of char;//declared a string variable with five characters
.....
str:='hello';//assigned a value to the 'str' variable
Code: Select all
char str[5];
.....
str = "hello";//Error