Menu

[327ada]: / Source / Tests / Parser / Variable.cpp  Maximize  Restore  History

Download this file

30 lines (26 with data), 606 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
Simple Arrays
*/
int SimpleVar;
int SimpleDefinedVar = 100;
const int ConstVar = 0xBB;
int VarListA = 2, VarListB = 0, VarListC = 3;
#define C int C
void (*FunctionPointer)(int) = 0;
/*
Arrays
*/
float Array[] = {1,2,3,4,5};
float DefinedArray[4] = {1,2,3,4};
float ZeroedArray[5] = {};
float PartiallyZeroedArray[6] = {1,2};
/*
Char arrays
*/
const char* ConstTextA = "This is a bit of text";
char ConstTextB[] = "This is a bit of text too";
char TextBuffer[256];
const char* ConstTextListA = "waw", ConstTextListB = "waw", ConstTextListC = "waw";
int main() {
C;
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.