c programming question 1 Assume the following structure definition: struct date
ID: 3702521 • Letter: C
Question
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)
putc()
fputchar()
putchar()
fputc()
question 3
Assume the following array declaration: int test[3]; How would you reference the first element in the test array?
test[3]
test[0]
test[1]
test[2]
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
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?
a.test[3]
b.test[0]
c.test[1]
d.test[2]
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
Explanation / Answer
question 1:
What is the data type of variable birthday?
Answer: struct date
--------------------------------------------------------------------------------------------------------------------------------------
question 2:
Which function(s) below allow you to write a single character to a data file? (Select all that apply)
Answers:
putc()
fputc()
--------------------------------------------------------------------------------------------------------------------------------------
question 3:
How would you reference the first element in the test array?
Answer: test[0]
--------------------------------------------------------------------------------------------------------------------------------------
question 4:
the number of files that can be open at any given time is limited.
Answer: False
--------------------------------------------------------------------------------------------------------------------------------------
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.