1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
solniwko [45]
3 years ago
11

Write C code to define a structure called date that has three fields day, month, year, all of which are ints.

Computers and Technology
1 answer:
amm18123 years ago
8 0

Answer:

The code to define a structure with the characteristics given is:

struct date {

   <em>int </em>day;

   <em>int </em>month;

   <em>int </em>year;

};

Explanation:

First you have to declare your structure using a data type struct(first line) and the name of the structure, inside brackets you define all the members of the structure and the type of each one following the next pattern:

  • struct <em>name_struct </em>{

              <em>type </em>item1;

              <em>type item2;</em>

<em>               /*...</em>        

       };

Finally we get into the correct answer:

struct date {

   <em>int </em>day;

   <em>int </em>month;

   <em>int </em>year;

};

You might be interested in
Disadvantages of using social network site GOAL SETTTING?
andriy [413]

Answer:

addiction, mental illness, misleading information, scams, cyberbullying

Explanation:

4 0
2 years ago
One of the files you should now have in your fileAsst directory is TweedleDee/hatter.txt. Suppose that you wished to copy that f
Paha777 [63]

Answer:

cp /path/to/source.txt .

is the general format of copying a file to the current directory

cp ~/UnixCourse/fileAsst/TweedleDee/hatter.txt .

You can refer to the current directory with a dot (.)

Explanation:

First, we would like to delete all files in our current directory (commandsAsst directory). To delete the files inside the directory, we would run the following command:

rm -r commandsAsst/*

This command delete the files recursively. Usually, the command for deleting is rm -r. The operator * run rm -r on every file or directory within commandsAsst.

5 0
3 years ago
This is an example of what type of formula?
slamgirl [31]

Answer:

Average

Explanation:

The term 'average' refers to the 'middle' or 'central' point. When used in mathematics, the term refers to a number that is a typical representation of a group of numbers (or data set). Averages can be calculated in different ways - this page covers the mean, median and mode.

3 0
2 years ago
Write a program that uses a dictionary to store students birthdays. Your program should ask the user what their name is, and loo
tekilochka [14]

di = {"student":"10/30/1984", "student2":"11/16/2020"}

name = input("What is your name? ")

if name in di:

   print(di[name])

else:

   print("Your name is not in the dictionary.")

You can change the values inside the dictionary. I hope this helps!

3 0
3 years ago
Why are the keys on the qwerty keyboard arranged the way they are?
sveticcg [70]
Sholes arranged the keys in their odd fashion to prevent jamming on mechanical typewriters by separating commonly used letter combinations.
7 0
3 years ago
Other questions:
  • ?trophic levelNYIGVU.;/IO9YK7,'0;
    12·1 answer
  • In order to accomplish the same goal, a person can click and hold down the mouse button and drag to the right, or hold Shift and
    5·2 answers
  • URGENT!! Which graphic design tools help you draw circles and rectangles?
    12·2 answers
  • Rows within a spreadsheet are identified by:
    8·1 answer
  • Question 15 of 28 (1 point) Jump to Question: Among many other responsibilities, a competent person is responsible for: A. All o
    6·1 answer
  • The 7-bit ASCII code for the character ‘&amp;’ is: 0100110 An odd parity check bit is now added to this code so 8 bits are trans
    12·1 answer
  • Can you shoot video on the Olympus E-410?
    12·2 answers
  • What is the area on a machine where work is actually being performed and
    12·1 answer
  • Typing which capitals and exclamation points in an email is an example of
    14·1 answer
  • Which protocol is responsible for transporting files between a client and a server?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!