I've a C++ program to reverse a string.
Its showing linker error. please help me debug it
char* st(const char *);
int main()
{
char *str="abcdefgh", *abc="\0";
strcpy(abc,st(str));...
Type: Posts; User: bluerose
I've a C++ program to reverse a string.
Its showing linker error. please help me debug it
char* st(const char *);
int main()
{
char *str="abcdefgh", *abc="\0";
strcpy(abc,st(str));...
thank you :)
code below is showing lvalue required error. why is it? how can it be corrected?
char c[10];
c='!';