1.

The following assignment statement will generate a compilation error. char str[20]; str=”Computer” Write a correct C++ statement to perform the same task

Answer»

char str[20] = “Computer”;

OR

char str[20]; strcpy(str,”Computer”); (The header le should be included).



Discussion

No Comment Found