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, 23.06.2019 02:00
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
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
Mathematics, 14.04.2020 21:13
question
Mathematics, 14.04.2020 21:13
Questions on the website: 13722363