Thread (4 messages) flat view 4 messages, 3 authors, 2017-04-03

&array[0] vs array

From: Tobin C. Harding <hidden>
Date: 2017-03-30 00:30:44

Does the kernel community have a preference when using the address of
the first element of an an array?

1. addr = &array[0]
2. addr = array;

$ grep '\&.*\[0\]' | wc -l
10077

style (1) is clearly used, I was not able to grep for instances where
style (2) is used.

thanks,
Tobin.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help