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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:00, floydsidney1119
Think about some of the most memorable and forgettable games ever created. they can be games that were discussed in this unit or otherwise. what are some of the consistent factors that made certain games memorable to you? what were some of the consistent factors that made certain games forgettable to you? why? explain.
Answers: 1
image
Computers and Technology, 22.06.2019 13:00, Cookie320
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, micahpauleen748
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, riah133
Creating "smart interfaces" in all sectors of industry, government, and the public arena is one of the fastest growing hct areas. these interfaces model, interpret, and analyze such human characteristics as speech, gesture, and vision. the field of biometrics, in which humans authenticate themselves to machines, is an area of considerable interest to hct practitioners. fingerprint scans are one of the most frequently used biometric options, and this article, biometric student identification: practical solutions for accountability & security in schools, makes a case for the implementation of fingerprint scans in schools. critique the article, and answer the following questions: according to the author, what are the main benefits of adopting fingerprint scans in schools for student identification? according to the author, what are the main drawbacks of adopting fingerprint scans in schools for student identification? do you agree with the author's assessment of the pl
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 in other subjects: