Structures c programming

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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


Kaugnay na mga set ng pag-aaral

Property and Casualty Principles Review Test

View Set

chapter 16 inflation and the price level

View Set

Chapter 45: Tissue Integrity/Integumentary Disorder NCLEX style

View Set

Individual and Family Homeostasis, Stress, and Adaptation

View Set

Unit 2 - Life/Health Insurance Underwriting

View Set

N10-007 Domain 1: Network Concepts

View Set

Custom: pharmacology practice assessment one

View Set