Given: Catalog and Widget types as shown, select the memory…

Given: Catalog and Widget types as shown, select the memory diagram that best represents the memory used by w in the printWidget function. To avoid a limitation in Canvas, array code below has an extra space before the index. typedef struct { char code[ 5]; int pages; } Catalog ; typedef struct { char item[ 15]; Catalog *cat; float price; } Widget ; void printWidget(Widget *w) { printf( ” item: %s\n”, [CODE1] ); printf( ” cat: %s (%i pages)\n”, [CODE2] ); printf( “price: $%f\n”, [CODE3] ); }… Memory Symbol Key: (a) is a contiguous block of memory that is named a (b) is a pointer named b that contains the address to another memory location; the end of the arrow indicates the memory that is pointed to. (c) shows a larger contiguous block of memory where all items in the box are stored in a contiguous block of memory; it may have address (c) associated with its start address or be pointed to (d) shows a larger contiguous block of memory that includes a smaller block of contiguous memory that is located within the larger block; it may have address (d) associated with its start address or be pointed to      

The Linux [ans1] command can be used to display the content…

The Linux [ans1] command can be used to display the content of a text-only file to the terminal window without opening the file in an editor program. Assume: assume the command is being executed from a terminal that has Linux commands enabled and that the file paths are fully qualified including use of the machine name and user login name if one is required.  Include only the command name and not any additional options or the file name.

Given: typedef struct { int MM; int SS; } Time ; void main()…

Given: typedef struct { int MM; int SS; } Time ; void main() { Time t[2] = {{7,45},{16,30}}; Which of the following statements will print the two item Time array as a start and end time: Start: 7:45 End: 16:30 Note: “%02i” is the printf format string that will zero pad an integer to fill two digits so it gives 04 in stead of 4 . printf(“Start: %2i:%02i End: %2i:%02i \n”, (t+0)->MM, (t+0)->SS, (t+1)->MM, (t+1)->SS ); printf(“Start: %2i:%02i End: %2i:%02i \n”, (*t).MM, (*t).SS, (*(t+1)).MM, (*(t+1)).SS ); printf(“Start: %2i:%02i End: %2i:%02i \n”, t[0].MM, t[0].SS, t[1].MM, t[1].SS ); printf(“Start: %2i:%02i End: %2i:%02i \n”, t[0]->MM, t[0]->SS, t[1]->MM, t[1]->SS );