anonymous
  • anonymous
Quick C pointer question Say we have: p = &c;
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
This assigns the address of c to the variable p, so p is a 'pointer' right?
anonymous
  • anonymous
Then what would this be? int *p;
anonymous
  • anonymous
p has to be a pointer and it should be declared bfore u assign it int *p is pretty much like int a .. int a would create an integer variable data type and int *p would create(allocates memory) a pointer

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
ok i see so would it be like this? int *p; p = &c;
anonymous
  • anonymous
yup
anonymous
  • anonymous
actually it would be like int c; int *p; p=&c
anonymous
  • anonymous
; :P
anonymous
  • anonymous
oh right of course, thanks avinash!

Looking for something else?

Not the answer you are looking for? Search for more explanations.