Question: c programming question 1 Assume the following structure definition: struct date { int month; int day; int year; }; Also assume the following variable declaration:
c programming
question 1
Assume the following structure definition:
struct date { int month; int day; int year; };
Also assume the following variable declaration:
struct date birthday;
What is the data type of variable birthday?
question 2
Which function(s) below allow you to write a single character to a data file? (Select all that apply)
| a. | putc() | |||||||||||||
| b. | fputchar() | |||||||||||||
| c. | putchar() | |||||||||||||
| d. | fputc()
question 3
Assume the following array declaration: int test[3]; How would you reference the first element in the test array?
question 4 It is okay to open up as many files as you want for use in your program, because for all operating systems, the number of files that can be open at any given time is unlimited. True False
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
