[ create a new paste ] login | about

Link: http://codepad.org/4L4wdDvU    [ raw code | output | fork ]

PhoeniX888 - C, pasted on Sep 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Pointers # 9

#include<stdio.h>

int main()
{
    char str1[] = "India";
    char str2[] = "BIX";
    char *s1 = str1, *s2=str2;
    while(*s1++ = *s2++)
        printf("%s", str1);

    printf("\n");
    return 0;
}


Output:
1
BndiaBIdiaBIXia


Create a new paste based on this one


Comments: