4
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by ithelp
0

You probably have something like:

char str[] = "hello";
char ch= str;

Then : no. str is an array of chars, so it won't fit in one char.

you could do ch = str[0] What are you trying to do? Could you post some code?

0

How can I convert char* to a char value?
can someone reply me asap

No you cannot convert , are you looking for something like this ?

char *a="hellp";
char b = *a ;
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.