Allowed types are char and int;
Real numbers are fractional numbers, all floating points are signed. Check float.h.
enum colors {black, orange, blue} color;
enum colors color;
union accounts {
int id;
float value;
} first_account, second_account;
struct point {
int x, y, z;
} first_point;
struct point second_point;
int account_array[9];
int account_array[] = {0, 1, 2, 3};
int account_array[] = {0, 1, 2, [9] = 9};
int account_array[2][9] { {1,2,3},{9,8,7} }
Initializing string with individual characters the null character must be defined;
char black[] = {'b', 'l', 'a', 'c', 'k', '\0'}
char black[] = "black";
union accounts {
int id;
float value;
};
union accounts accounts_array[9];
accounts_array[0].id = 8;
struct point {
int x, y;
};
struct point point_array[9];
point_array[0].x=2;
point_array[0].y=3;
This is part of the LeetIO System Documentation. Copyright (C) 2021 LeetIO Team. See the file Gnu Free Documentation License for copying conditions.