For a char variable would i also set it to 0 as i would set and int or a float or any other variable?
Such as
char test = 0
would it be like that since
int test = 0
would be like that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Which do you want? The character ‘0’, or the ascii 0?
If you want to set it to the character ‘0’, then you need:
If you want the ascii value 0, then it’s fine the way it is.