[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-user: C question
Look at the following:
1) int bob[5] = {0x1, 0x2];
2) int const bob[2] = {0x1, 0x2};
3) static int const bob[2] = {0x1, 0x2};
1 creates an initialized array in ram.
2 creates a read-only array - presumably in ROM
What does 3 do? I think 3 compiles to a read-only area of ram. Am I correct?
gene
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user