CompuServe Messages

#STUDENT RESPONSE ANI3-B

    13-Mar-95 14:26:02
Fm: Jack S. Winberg 71513,1522
To: NAAUG 73204,3522
Hi Jerry, Thanks for your help. I entered the program as suggested, and it all works just dandy, EXCEPT that sizeof() returns one more character than in the names. I am using the form char fname{}=X, but still get the wrong count. Here is the latest revision: main() { char fname[]="Jack"; char lname[]="Winberg"; char say[]="What is your first name?"; char say2[]="What is your last name?"; int bsize=sizeof(fname); int bsize2=sizeof(lname); Qstring(fname,bsize, say); Qtext("Press to continue…"); Qstring(lname,bsize2,say2); Qtext("Press to continue…"); printf("%s is %d characters long",fname,bsize); Qtext("Press to continue…"); unprintf(); printf("%s is %d characters long",lname,bsize2); Qtext("Press to continue…"); unprintf(); } Do we persist now? Jack