--- In [email protected], Knowledge Seeker <[EMAIL PROTECTED]> wrote: > > Nico Heinze wrote: > > --- In [email protected], Knowledge Seeker > > <knowledgeseeker78@> wrote: > > > >> There will be no output ... as your program will > >> fail to compile !! > >> > >> ranjan kumar ojha wrote: > >> > >>> #include<cstdio> > >>> int main() > >>> { > >>> char *s="\12345s\n"; > >>> print("%d",sizeof(s)); > >>> return 0; > >>> } > >>> > >>> what will be output of above program and why ???? > >>> > > > > KnowledgeSeeker, > > if you're complaining about the "return o" instead of > > "return 0" or the "#include <cstdio>", you're of course > > correct, but this won't help Ranjan anyway. > > > No offense intended Nico, but what i wanted to convey to OP > is that he has not even taken any pains to try the problem > first hand. The groups is for help and not for spoon-feeding. <snip>
Hi, I totally understand and support your point, but what did your (correct) complaint help him to learn? I have misexpressed myself by choosing too hard a wording, and for that I apologise. What I meant to say is that we should use such a chance to teach other people how to behave better: 1) that compiling the program on his own computer will at least give him some hint about potential answers. 2) that mentioning his own thoughts about the correct answers makes more sense than just asking something. Sorry for the misunderstanding I have caused this way. Regards, Nico
