JPDev@programming.dev to Programmer Humor@programming.dev · 10 months agoWhitespaceprogramming.devimagemessage-square72fedilinkarrow-up1305
arrow-up1305imageWhitespaceprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 10 months agomessage-square72fedilink
minus-squareowsei@lemmy.worldlinkfedilinkarrow-up4·10 months agotbh I always think about it as ‘p’ is a pointer to int therefore *p is an int therefore I should call it int *p; however, of course, you should use what your team prefers. Having good yet inconsistent style is worst than mid consistent style.
tbh I always think about it as ‘p’ is a pointer to int
therefore *p is an int
therefore I should call it int *p;
however, of course, you should use what your team prefers. Having good yet inconsistent style is worst than mid consistent style.