Does someone can explain me what means this :
*(p+(i*3)+j)
?
thank you in advance
4 replies to this topic
#1
Posted 10 April 2011 - 09:45 AM
|
|
|
#2
Posted 10 April 2011 - 12:20 PM
What are the types of p, i, and j?
#3
Posted 10 April 2011 - 02:06 PM
I'd assume i and j are loop counters and p is a two dimensional array or pointer to a pointer (which is pretty much the same). If that's the case, your code should be equivalent to
p[i][j];Also, judging by that 3 near i, I'd assume the p array is something like this:
Type p[3][second_size];
A conclusion is where you got tired of thinking.
#define class struct // All is public.
#4
Posted 13 April 2011 - 02:48 AM
Flying Dutchman said:
I'd assume i and j are loop counters and p is a two dimensional array or pointer to a pointer (which is pretty much the same). If that's the case, your code should be equivalent to
p[i][j];Also, judging by that 3 near i, I'd assume the p array is something like this:
Type p[3][second_size];
#5
Posted 13 April 2011 - 02:27 PM
i get it but i forgot to write here ... thank you guys :)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









