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

how to go through the pointers

Discussion in 'C' started by imported_satty, Aug 31, 2010.

  1. imported_satty

    imported_satty New Member

    Joined:
    Aug 31, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hello!
    I am not able to follow how should i like the same thing in pointers:

    int a[10], b= 1, c; // initialization
    a[++b]=c; // increment

    If I want to write the same thing in pointer, then what would it be like

    int *a, b =1, c;
    a = (int*) calloc(10, sizeof(int));
    //how would the third line be written ??????
     

Share This Page