Answers to questions on structs in C

The following questions refer to this struct.
struct TV_programme {
   char* title;
   int hour, minute;
   float budget;
};
  1. Write a declaration for a variable of this type called Brookside.

    struct TV_programme Brookside;
  2. Show an assignment to the budget field of Brookside, setting the value 75.62.
    Brookside.budget = 75.62;

Back to the questions


Back to notes on structs