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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice