V
venkat
Hi,
I am new to c++ programming language. I have written small program ,
where i pass the char string then , i find out length.
find_len( char *str); is the proto type for the function.
I did type casting to give new name to char ,
typedef signed char sint;
Then i replaced the function call with
find_len(sint *str);
when i compiled, i am getting the error saying, invalid conversion
from `sint*' to `char*'
i am not able to understand, what was the problem?. Please help me
out in knowing, why this problem is happening.
Appreciate your help in this regard.
Thanks,
Vikas.
I am new to c++ programming language. I have written small program ,
where i pass the char string then , i find out length.
find_len( char *str); is the proto type for the function.
I did type casting to give new name to char ,
typedef signed char sint;
Then i replaced the function call with
find_len(sint *str);
when i compiled, i am getting the error saying, invalid conversion
from `sint*' to `char*'
i am not able to understand, what was the problem?. Please help me
out in knowing, why this problem is happening.
Appreciate your help in this regard.
Thanks,
Vikas.