[Courses] [C] Beginner's Lesson 4A: Arrays, Qualifiers, and R eading Numbers

Eugene Teo eugene.teo at eugeneteo.net
Fri Oct 11 19:17:07 EST 2002


Hi,

Sorry i didn't realise it's an assignment. I am only trying to
point out mistakes so that people won't make the same mistakes again.

Eugene

<quote who="Anand R">
u> Thanks Eugene. May be I could have elaborated. This is the program which
u> came on the mailing list. It was an assignment for the group. There are some
u> other code mistakes in some other places in the mail. But it is bound to
u> happen in an effort as this one (and also indrectly serves as an assignment
u> for the group members). I did realize that the double quotes were not in
u> place. 
u> 
u> Hats off to KW for the efforts being put in to this exercise. Really
u> commendable and greatly appreciated. Thanks a million K.
u> 
u> Regards,
u> --Andy
u> 
u> 
u> 
u> -----Original Message-----
u> From: Eugene Teo [mailto:eugene.teo at eugeneteo.net]
u> Sent: Friday, October 11, 2002 4:07 PM
u> To: Anand R
u> Cc: courses at linuxchix.org
u> Subject: Re: [Courses] [C] Beginner's Lesson 4A: Arrays, Qualifiers, and
u> R eading Numbers
u> 
u> 
u> <quote who="Anand R">
u> u> [root at tux linuxchix]# gcc a.c -o a -Wall
u> u> a.c: In function `main':
u> u> a.c:13: warning: passing arg 2 of `strcat' makes pointer from integer
u> u> without a cast
u> u> [root at tux linuxchix]# 
u> u> 			strcat(full, ' ');
u> 
u> I don't really like the way you write this program but anyway,
u> the above warning is because of ' '. it should be " ". ' ' is
u> character, " " is string.
u> 
u> -- 
u> eMail: eugeneteo at eugeneteo.net, eugeneteo at null.cc.uic.edu
u> gpg pub_key: http://null.cc.uic.edu/~eugeneteo/eugeneteo.asc
u> main(i){putchar(182623909>>(i-1)*5&31|!!(i<7)<<6)&&main(++i);}

-- 
eMail: eugeneteo at eugeneteo.net, eugeneteo at null.cc.uic.edu
gpg pub_key: http://null.cc.uic.edu/~eugeneteo/eugeneteo.asc
main(i){putchar(182623909>>(i-1)*5&31|!!(i<7)<<6)&&main(++i);}




More information about the Courses mailing list