Structures c programming
what are structures are used to represent what?
a record
structure tag
optional and each member definition is a normal variable definition, like int I; or float f; or any other valid variable defintion
what c programming keyword is used to define a structure?
struct
format of struct statement
struct [structure tag] { member definition; member definition; ... member definition; } [one or more structure variables];
what's the correct notation to access row and column of struct location variable loc referencing the "?" loc?row = 5; loc?column = 5;
.
what is structure?
another user defined data type available in C that allows to combine data items of different kinds
typedef struct gameboard { char board[ROWS][COLS]; } GameBoard; GameBoard gameBoard; Given the source code above, which of the following code examples is the correct methodology to pass struct GameBoard variable gameBoard to a function as a pointer?
initializeGameBoard(&gameBoard);
typedef struct gameboard { char board[ROWS][COLS]; } GameBoard; GameBoard gameBoard; Given the source code above, which of the following code examples is the correct methodology to pass struct GameBoard variable gameBoard to a function as a struct?
initializeGameBoard(gameBoard);
given the source code above, what are the variables row and column called in a struct? typedef struct location { int row; int column; } Location;
members