I've started learning C yesterday, and the only other language I know is Python.
I'm having some trouble with arrays, because they are quite different from the Python lists.
I tried to print an array, not an element of it, but the array itself.
#include <stdio.h>
int array[3] = {1, 2, 3}
main(){
printf("%i, %i", array[0], array);
}
What I got is 1 (obviously), and 4210692, which I can't understand from where it comes.
What I wanted to do first, is to make an array of arrays:
float a[1][4];
float b[4];
a[0] = b;
main(){
printf("%f", a[0]);
}
but it returns a strange number, and not something like this is an array as Python does.