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, 21.06.2019 23:30
Step 1: choose your topics review the project milestone reflections you submitted for modules 1 through 4. choose the one major idea or concept from each module that you feel most applies to your life. in addition, choose an important concept from module 5 that applies to your life. step 2: write your guidebook for each module: write a catchy headline that clearly and concisely sums up your chosen idea or concept write a brief explanation that includes a description of the concept, why it is important, and how it can be applied to your life to make a positive impact choose an exciting, powerful, or engaging image that illustrates your concept remember, you are writing one for each module, so you will have a total of five headlines, five descriptions, and five images. step 3: design your guidebook choose a format to present your digital guidebook. there are many 21st century tools available for creating and submitting your work in the online environment. for more information on tools your school uses, contact your instructor or visit the web 2.0 tools area.
Answers: 3
question
Computers and Technology, 23.06.2019 07:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
You know the right answer?
#includeusing namespace std; int main() { struct foo_t { int x[100]; int var1; int y[10]; } foo;...
Questions