can anyone solve the problems attached. i'm stuck and i don't know what to do and their due this monday. please!!!!!!
can anyone solve the problems attached. i'm stuck and i don't know what to do and their due this monday. please!!!!!!
I would suggest reading your book, concentrating on understanding what the syntax *ptr means. I would also suggest building a time machine to go back to October 9, 1998, because otherwise this homework is seriously overdue.
sigh sigh... "help", 6 exclamation marks, "homework", and a scan/paste.... sigh sigh
You need to learn the difference between & and *. These state two different 'things' about the variable the pointer is pointing to.
Once you spend a few minutes looking it up you'll get it no problem.
You get extra points today for being the boldest, most arrogant, cocky person to ever grace the board. Good job.
Wait... this was due October 9? So is this like test review or something or what?
October 9, 1998 to be exact
"All statements are guaranteed to be syntactically valid C++"
Maybe so, but what type is ptr2 here?
double *ptr1, ptr2;
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
1. 42
2. &42
3. sets ptr[42] = 24.9
4. B
5. A
6. D
7. T
8. F
9. T
10. F
11. T
12. T
13. F
14. A - allocates a dynamic variable named pointer
15. both
What does "the best possible answer" mean anyway?
I mean, if an accurate answer is "x is 10", would "the answer is that x is assigned the value 10" be a better answer?
And if so, what would be the best possible answer?
Nice cursive script, with illumination on the first character perhaps?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
those who demand we do their homework deserve the grade they get from my answers