Discussion: regarding typecasting
Afficher un message
Vieux 05/06/2008, 15h09   #1
venkat
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut regarding typecasting

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 me
out in knowing, why this problem is happening.

Appreciate your in this regard.

Thanks,
Vikas.
  Réponse avec citation
 
Page generated in 0,04249 seconds with 9 queries