C Programming (Unix) Create an array of size 1000 of your datatype as a global variable. Initialize the 5th element of t
Posted: Thu Jun 02, 2022 7:57 am
C Programming (Unix)
Create an array of size 1000 of your datatype as a global
variable. Initialize the 5th element of the array with a set of
sample values for your datatype. In main, as your first executable
statement, initialize the 3rd element of the array to a different
set of values. Compile to verify that your are using the correct
syntax and hand in a screen shot of this part of your code. b. Load
your program in gdb and set a breakpoint on the 2nd executable
statement. run the program and when the program stops display the 2
initialized elements
The database structure:
struct training
{
char Name[5];
int val;
float money;
double wickers;
char Type[11];
short value2;
};
Create an array of size 1000 of your datatype as a global
variable. Initialize the 5th element of the array with a set of
sample values for your datatype. In main, as your first executable
statement, initialize the 3rd element of the array to a different
set of values. Compile to verify that your are using the correct
syntax and hand in a screen shot of this part of your code. b. Load
your program in gdb and set a breakpoint on the 2nd executable
statement. run the program and when the program stops display the 2
initialized elements
The database structure:
struct training
{
char Name[5];
int val;
float money;
double wickers;
char Type[11];
short value2;
};