1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

what is wrong with this code

Discussion in 'Meet and Greet' started by harikrishna_sit, Jan 24, 2008.

  1. harikrishna_sit

    harikrishna_sit New Member

    Joined:
    Jan 24, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student(MCA)
    Location:
    Hyderabad,AP,India
    main()
    {
    char *p="hai friends",*p1;
    p1=p;
    while(*p!='\0')
    ++*p++;
    printf("%s %s",p,p1);
    }
     

Share This Page