95 pts.
 Create a char in c++ – what does ” mean?
Hi all, I am working on a class project to make a simple shell program. I am googleing examples, and I came across this one on linuxgazette char c = ''; printf("n[MY_SHELL ] "); while(c != EOF) { c = getchar(); if(c == 'n') printf("[MY_SHELL ] "); } printf("n"); return 0; I understand that they are just initializing the char to ensure that it is not EOF - but what does stand for? Thanks in advance, crabpot

Software/Hardware used:
ASKED: September 16, 2008  8:25 PM
UPDATED: September 16, 2008  9:14 PM

Answer Wiki:
Hello Crabpot8. '' = NULL, which has an integer value of 0. This null character is commonly used as a string terminator in C. Regards,
Last Wiki Answer Submitted:  September 16, 2008  9:14 pm  by  carlosdl   63,580 pts.
All Answer Wiki Contributors:  carlosdl   63,580 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _