Question

Please help in answering these questions dealing with this one prompt:

/* Example: building a complicated data structure, step by step / #include <stdio.h> /* declare structures: */ struct date {

1

Which line is first line of the date structure prototype (blueprint)?

30

21

7

59

2

Which line is date structure declared inside another structure prototype?

21

32

36

60

3

What is the structure tag which has date as a data member?

date

him

student

her

4

Which line is a student structure instance declared (created)?

17

30

25

55

5

Which line is a student structure initialized?

61

17

45

34

6

Which line is a date structure created (instantiated)?

30

7

49

59

7

Which line has a date structure initialized values?

22

32

7

60

8

Which line sets the percentage value for her programming module?

43

13

23

61

9

Which line prints the year a specified student enrolled?

22

49

32

60

10

Which line defines the year data type for a date?

59

22

8

36

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please find the answer below for the questions.

Which line is first line of the date structure prototype (blueprint)?

Answer: Line# 7

It has data struct prototype.

Which line is date structure declared inside another structure prototype?

Answer: Line# 21

This line has data struct declared inside student structure and we can also have line# 22

What is the structure tag which has date as a data member?

Answer: student

struct student has data as data member

Which line is a student structure instance declared (created)?

Answer: Line# 30

struct student instance created at line# 30 by calling struct student him = { };

Which line is a student structure initialized?

Answer: Line# 34

struct student her initialized at line# 34 by calling struct student her = { };

Which line is a date structure created (instantiated)?

Answer: Line# 30

struct date instantiated at line# 30 by calling struct student him = { };

Note: As per HOMEWORKLIB RULES, we are requested to first four questions and if time permits we will answer more than 4

Add a comment
Know the answer?
Add Answer to:
Please help in answering these questions dealing with this one prompt: 1 Which line is first...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please explain how these code run for each line #include<stdio.h> #include<string.h> /** * Part A */...

    Please explain how these code run for each line #include<stdio.h> #include<string.h> /** * Part A */ struct myWord{    char Word[21];    int Length; }; int tokenizeLine(char line[], struct myWord wordList[]); void printList(struct myWord wordList[], int size); void sortList(struct myWord wordList[], int size); /** * main function */ int main() {    struct myWord wordList[20];    char line[100];    printf("Enter an English Sentence:\n");    gets(line);    int size = tokenizeLine(line, wordList);    printf("\n");    printf("Unsorted word list.\n");    printList(wordList, size);...

  • I JUST NEED HELP WITH DISPLAY PART! please help! thanks in advance // This function saves...

    I JUST NEED HELP WITH DISPLAY PART! please help! thanks in advance // This function saves the array of structures to file. It is already implemented for you. // You should understand how this code works so that you know how to use it for future assignments. void save(char* fileName) { FILE* file; int i; file = fopen(fileName, "wb"); fwrite(&count, sizeof(count), 1, file); for (i = 0; i < count; i++) { fwrite(list[i].name, sizeof(list[i].name), 1, file); fwrite(list[i].class_standing, sizeof(list[i].class_standing), 1, file);...

  • Please help in answering these questions: 1 Line 92 deck is a calling parameter. The received...

    Please help in answering these questions: 1 Line 92 deck is a calling parameter. The received number of that parameter is what? copy of original value pointer 2 Line 92, src is a calling parameter. The received number of that parameter is what? copy of original value pointer 3 Line 95 is a debugging technique where the computer prints what it is doing. Give the line number of a similar line in the example 99 101 108 113 4 Line...

  • Please explain step by step what is going on each step.please clearly explain line by line...

    Please explain step by step what is going on each step.please clearly explain line by line the working of code . Also provide the output. I would rate positively. Thank you so much . #include <stdio.h> #include <stdlib.h> struct  node  {       int data;       struct  node  *next;   };   struct  node  *head = NULL; void  printList() {       struct  node  *ptr  = head;       printf("\nhead:");            while(ptr !=  NULL) {             printf("node  addr:%p   \tdata:%d   \tnext addr:%p\n”, ptr,ptr->data,ptr->next);                            ptr = ptr->next;         }       printf("  [null]\n"); } void  insert(int  data) {       struct  node  *link = (struct node*)        malloc(sizeof(struct  node));       link->data  = data;       link->next  = head;       head  = link; } int main()  {...

  • ASSIGNMENT DUE DATE GOT PUSHED BACK TO LATE THIS WEEK. PLEASE READ COMMENTS AND CODE BEFORE...

    ASSIGNMENT DUE DATE GOT PUSHED BACK TO LATE THIS WEEK. PLEASE READ COMMENTS AND CODE BEFORE ANSWERING CODING SECTIONS HW07 #Q1-Q5 HW08 #Q1-Q2 // READ BEFORE YOU START: // Please read the given Word document for the project description with an illustrartive diagram. // You are given a partially completed program that creates a list of students for a school. // Each student has the corresponding information: name, standard, and a linked list of absents. // Please read the instructions...

  • Which part of this program is used for input one context free grammar? And if you...

    Which part of this program is used for input one context free grammar? And if you want to give another different context free grammar, how to do that? code: #include<stdio.h> #include<stdlib.h> #include<string.h> #define MaxVtNum 20 #define MaxVnNum 20 #define MaxPLength 20 #define MaxSTLength 50 char stack[20]={'#','E'}; char input[MaxSTLength]; char termin[MaxVtNum]={'i','+','*','(',')','#'}; char non_termin[MaxVnNum]={'E','G','T','H','F'}; struct product{ char left; char right[MaxPLength]; int length; }; struct product E,T,G,G1,H,H1,F,F1; struct product M[MaxVnNum][MaxVtNum]; int flag=1; int top=1; int l; void print_stack(){ } } } } }...

  • Hello, I am having trouble with a problem in my C language class. I am trying...

    Hello, I am having trouble with a problem in my C language class. I am trying to make a program with the following requirements: 1. Use #define to define MAX_SIZE1 as 20, and MAX_SIZE2 as 10 2. Use typedef to define the following struct type: struct {     char name[MAX_SIZE1];     int scores[MAX_SIZE2]; } 3. The program accepts from the command line an integer n (<= 30) as the number of students in the class. You may assume that the...

  • Writing a program in C please help!! My file worked fine before but when I put...

    Writing a program in C please help!! My file worked fine before but when I put the functions in their own files and made a header file the diplayadj() funtion no longer works properly. It will only print the vertices instead of both the vertices and the adjacent like below. example input form commnd line file: A B B C E X C D A C The directed edges in this example are: A can go to both B and...

  • PROGRAMING IN C. PLEASE HELP FIX MY CODE TO FIT THE FOLLOWING CRITERIA: 1.)Read your stocks...

    PROGRAMING IN C. PLEASE HELP FIX MY CODE TO FIT THE FOLLOWING CRITERIA: 1.)Read your stocks from your mystocks.txt file. You can use this information for the simulator. 2.)The stock price simulator will return the current price of the stock. The current prices is the prices of the requested ticker + a random number. 3.)We will assume that the stock price remains constant after the price check till your trade gets executed. Therefore, a buy or a sell order placed...

  • In c programming The Consumer Submits processing requests to the producer by supplying a file name, its location and a character. It also outputs the contents of the file provided by the producer...

    In c programming The Consumer Submits processing requests to the producer by supplying a file name, its location and a character. It also outputs the contents of the file provided by the producer to the standard output. The Producer Accepts multiple consumer requests and processes each request by creating the following four threads. The reader thread will read an input file, one line at a time. It will pass each line of input to the character thread through a queue...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT