what do two square brackets next to eachother do in C, Is it the same as it is in python?
In python it would be
lst = [1,2,3,[1,2,3]]
lst[3][1]
and the second line would give 2
.
In C does it function the same?
In python it would be lst = [1,2,3,[1,2,3]] lst[3][1] and that would be 2 in the second list. In C does it function the same?
Yes and no. Well more like no and yes really:
lst
is an array of arrays, lst[3][1]
will indeed return the second element of the 4th, howeverIf you have to work with C, you really should learn C not just try to muddle through by semi-random equivalence. C is not a big language, but it's neither easy nor forgiving.