cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
char to char *
char to char *
May 31, 2009 at 4:01pm UTC
Null
(957)
How can I convert char to char *?
1
2
char
c=
'a'
;
char
*d=(
char
*)c;
but it gives me a warning
[Warning] cast to pointer from integer of different size
May 31, 2009 at 4:04pm UTC
Bazzy
(6281)
The right syntax is
&c
but want do you want to do with that?
http://www.cplusplus.com/doc/tutorial/pointers/
Topic archived. No new replies allowed.