Given the (potentially questionably) source, yes. what should it be!!!
--- On Sat, 7/26/08, Paul Herring <[EMAIL PROTECTED]> wrote: From: Paul Herring <[EMAIL PROTECTED]> Subject: Re: [c-prog] Segmentation fault To: [email protected] Date: Saturday, July 26, 2008, 3:02 PM On Sat, Jul 26, 2008 at 8:29 PM, Robert Ryan <[EMAIL PROTECTED] com> wrote: > ~/CSSp08]$ ./a.out > hello2hello2 > is this what the output is suppose to be > > > #include<stdio. h> > #include<string. h> > int main() > { > char s1[7] ="hello1"; > char s2[7] ="hello2"; > { > strcpy(s1, s2); > printf("%s%s\ n", s1, s2); > } > } Given the (potentially questionably) source, yes. No Standards[tm] were hurt in the compilation of the previous email.... -- PJH 'Two Dead in Baghdad' not 'product-friendly' - Kent Ertugrul, chief executive of Phorm. http://shabbleland. myminicity. com [Non-text portions of this message have been removed]
