Question: COP2220 Intro to Programming in C (Answer in C, NOT C++) INCLUDE COMMENTS PLEASE 1. Write a preprocessor directive to set the constant NUM to
COP2220 Intro to Programming in C (Answer in C, NOT C++) INCLUDE COMMENTS PLEASE
1. Write a preprocessor directive to set the constant NUM to a value large enough for the follow question.
Define a struct called teacher with the following fields:
A character array for the last name
A character for the first initial
A character array for the subject
An integer for the age
Declare a single (not an array) variable with the data type teacher and,using keyboard input, initialize all data fields of your structure variable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
