msnkd's profilePoor programmer's BlogPhotosBlogListsMore Tools Help

Blog


    October 29

    C,C++ Geek's way to access array/ pointer elements.

     
    After a short gap , i am back. This is post is from old memories. I don't know how many people know this ?
     
    I don't want to explain much. Look the following codes
     
    int nArCounts[3]   = {30,20,50};
     
    Normally people accessing array element like nArCounts[i].
    It is also possible to access it like this i[nArcounts] ,Both are converted to nArcounts + i .
     
    Thats all , But if a guy don't know this , when he/she sees these type of notations he will get mad. I am sure. Wink