13.07.2015 Views

C struct, typedef, enum & union - Tenouk C & C++

C struct, typedef, enum & union - Tenouk C & C++

C struct, typedef, enum & union - Tenouk C & C++

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

STRUCT, TYPEDEF, ENUM & UNION• Or something like the following statements,<strong>struct</strong> student{int nIdNum, nAge;char chName[80];char chGender;};• And later in our program we can declaresomething like this,<strong>struct</strong> student studRecord[100];• This statement declares 100 variables of type<strong>struct</strong> student.www.tenouk.com, © 28/93

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!