Thursday, December 14, 2017

Declaring pointer variables C/C++

Great summary of the various ways to declare pointer variables in C/C++

https://www.quora.com/Why-do-we-use-%E2%80%9Cint-%2Ap%E2%80%9D-over-%E2%80%9Cint%2A-p%E2%80%9D/answer/Roland-Frank-1?srid=uRSqj


Read Keith Thompson's answer to Why do we use “int *p” over “int* p”? on Quora

2 comments:

  1. Cool -- but the link didn't format correctly.

    https://www.quora.com/Why-do-we-use-%E2%80%9Cint-*p%E2%80%9D-over-%E2%80%9Cint*-p%E2%80%9D/answer/Keith-Thompson-3

    ReplyDelete
    Replies
    1. And it didn't show up correctly in my comment either. *sigh*

      Delete