Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If array index is known then hardcode the offset #10

Open
NeeEoo opened this issue Sep 15, 2020 · 1 comment
Open

If array index is known then hardcode the offset #10

NeeEoo opened this issue Sep 15, 2020 · 1 comment

Comments

@NeeEoo
Copy link
Contributor

NeeEoo commented Sep 15, 2020

Lets say that you have int matrix[4][4]; and want to get matrix[1][1] which is item 6 then we can hardcode the ptr offset as >>>>>> and copy the value into the desired cell.

I know that this works for 1 dimensional array but that was before multidimensional arrays.

This might also work with setting an item.

@elikaski
Copy link
Owner

Great idea !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants