Creating an Array: Difference between revisions
Content added Content deleted
m (→[[Python]]: adding tested interpreter versions.) |
(→[[C]]) |
||
Line 124: | Line 124: | ||
'''Compiler:''' GCC, MSVC, BCC, Watcom |
'''Compiler:''' GCC, MSVC, BCC, Watcom |
||
'''Libraries:''' [[None are needed]] |
|||
// Dynamic |
// Dynamic |
||
int n = 10 * sizeof(int); |
int n = 10 * sizeof(int); |
||
Line 131: | Line 132: | ||
myArray[1] = 2; |
myArray[1] = 2; |
||
'''Libraries:''' [[None are needed]] |
|||
// Static |
// Static |
||
int myArray2[10] = { 1, 2, 0}; /* 3..9 := 0 */ |
int myArray2[10] = { 1, 2, 0}; /* 3..9 := 0 */ |