[cfe-dev] Question about array accesses

Prateek Saxena thisisprateeksaxena at gmail.com
Wed Feb 12 22:26:13 PST 2014


Hi.

Given a multi-dimensional array like
int a[3][5][6];

what would be a good way of calculating the offset of an element like
a[1][1][1] from the base pointer to a ?

Regards,
Prateek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140213/3f6a9fd5/attachment.html>


More information about the cfe-dev mailing list