Search:

Type: Posts; User: Dorky King

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,577

    an answer raises another problem...

    void func(char *s1, char *s2, char *s3){
    while(*s1 != '\0' ) s1++;
    while(*s2 != '\0' ) s2++;
    for(; *s1=*s2=*s3; s1++, s2++, s3++);
    }

    main() {
    char s1[10] = "ABC", s2[10]="DEF";
    char...
  2. Replies
    12
    Views
    2,045

    Now I've got another problem... at the end of...

    Now I've got another problem...
    at the end of for statement, pointer s1, s2, s3are all pointing to the '\0' character of each
    string.
    when you come back to main and print each string why does it...
  3. Replies
    12
    Views
    2,045

    you guys are awesome... thank you so much!!!!

    you guys are awesome... thank you so much!!!!
  4. Replies
    12
    Views
    2,045

    opps.... the result is ABCGHI, DEFGHI GHI... I'm...

    opps.... the result is ABCGHI, DEFGHI GHI... I'm sorry mistake
  5. Replies
    12
    Views
    2,045

    come on experts!!! I'm desperate...

    come on experts!!! I'm desperate...
  6. Replies
    12
    Views
    2,045

    I don't understand this for function.

    WHEN YOU TYPE




    void func(char *s1, char *s2, char *s3){
    while(*s1 != '\0' ) s1++;
    while(*s2 != '\0' ) s2++;
    for(; *s1=*s2=*s3; s1++, s2++, s3++);
    }
  7. Replies
    2
    Views
    1,475

    Help I'm dying linked structures

    thanks
Results 1 to 7 of 12