argc[argv]

Lepreau at UTAH-20.ARPA Lepreau at UTAH-20.ARPA
Mon Dec 19 18:40:43 AEST 1983


From:  Jay Lepreau <Lepreau at UTAH-20.ARPA>

Nope, a[b] == *(a+b) for all arrays, not just char arrays, at least in
"modern" (since v7 at least) C compilers, which know the size of *a
already and use it in "scaling b".  They don't just add plain "b" to it.
Explicitly including sizeof would lose cause it would then be done twice.
-------



More information about the Comp.unix mailing list