initilizing char to null or blank

A

Art Cummings

Does anyone know how to initialize a char variable to blank or null?

Thanks

Art
 
V

Victor Bazarov

Art said:
Does anyone know how to initialize a char variable to blank or null?

Not sure what "blank" is. A space? The null character is 0 or '\0'.

V
 
D

Default User

Art said:
Does anyone know how to initialize a char variable to blank or null?

I told you how to set one to nul yesterday. I don't know what "blank"
means. Why do you think you need to do this?




Brian
 
A

Art Cummings

Default User said:
I told you how to set one to nul yesterday. I don't know what "blank"
means. Why do you think you need to do this?




Brian

Thanks Brian, I went back and looked at your reply. I wanted to initialize
it to an empty string, then I realised that concept for a char variable was
incorrect. I assigned the char the ascii zero and it basically did what I
was trying to do.

Thanks

Art
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top