How can I convert char* to a char value?
can someone reply me asap
savinki
0
Light Poster
Recommended Answers
Jump to PostYou 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?
All 3 Replies
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
banban2008
0
Newbie Poster
ithelp
757
Posting Virtuoso
Banned
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.