Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: As to c pointer  (Read 2399 times)

0 Members and 1 Guest are viewing this topic.

clleady

    Topic Starter


    Rookie

    Thanked: 1
    As to c pointer
    « on: August 18, 2009, 07:41:13 AM »
    char a[]="abc";
    printf("%d",*a);   is the right sentence but printf("%d",*++a) is the wrong sentence.
    why? Is a[0] equal to *a and a[1] equal to *++a?Thx for your help~

    soybean



      Genius
    • The first soybean ever to learn the computer.
    • Thanked: 469
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: As to c pointer
    « Reply #1 on: August 18, 2009, 08:40:10 AM »
    Is this a programming question?  If so, why didn't you post it in the Programming section?