Usaually I'm working with high-level-languages, therfore I run into some pitfalls when I start to work with NXC (BricxCC 3.3):
When I try to declare a multi-dim-array with initialization I get Errors: Variable name expected, ";" expected
Code: Select all
int matrix[][] = {{1, 2, 3}, {4, 5, 6}};
Code: Select all
int foo[] (){
int bar[] = {1,2,3};
return bar;
}
salute
Thomas