subject

#includeusing namespace std; int main() { struct foo_t { int x[100]; int var1; int y[10]; } foo; int var2; long i; int *p, *q; short int *s; long int *l; struct foo_t bar[50]; for (i=0; i< 100; i++) foo. x[i]=100+i; for (i=0; i< 10; i++) foo. y[i]=200+i; foo. var1 = 250; cout < < sizeof(*s) < < " "; cout < < sizeof(*p) < < " "; cout < < sizeof(*l) < < " "; q = (int *) & foo; cout < < q < < " "; p=& (foo. x[5]); cout < < *p < < " "; // point 1q = (int *) & var2; cout < < q < < " "; q = p+16; cout < < *q < < " "; i = ((long) p) + 16; q = (int *) i; cout < < *q < < " "; s = (short *) i; cout < < *s < < " "; l = (long *) i; cout < < *l < < " "; q = p+95; cout < < *q < < " "; q = p+98; cout < < *q < < " "; i = ((long) p) + 17; q = (int *) i; cout < < *q < < " "; q = p + ; cout < < *q < < " "; q = (int *) ) p) + ; cout < < *q < < " "; p = (int *) & bar; *(p + = 500; cout < < bar[8].var1 < < " "; }run the above program, commenting out the lines with blanks (you may need to modify the header for your system). what output to get? make sure to mention which computer/compiler you are using. you will need to understand your output before proceeding to answer the rest.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen too
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
You know the right answer?
#includeusing namespace std; int main() { struct foo_t { int x[100]; int var1; int y[10]; } foo;...
Questions
question
History, 23.10.2019 08:50
Questions on the website: 13722367