Search:

Type: Posts; User: tabstop

Search: Search took 0.12 seconds.

  1. Replies
    52
    Views
    10,720

    So you have a pointer to memory: int *bob means...

    So you have a pointer to memory: int *bob means that bob is a pointer to an int (the memory that we get from malloc can store whatever, but this is telling us that we want to interpret it as an int);...
  2. Replies
    52
    Views
    10,720

    You put whatever the heck you want in there. ...

    You put whatever the heck you want in there. "int" says "I want an int" and the compiler gives you exactly enough memory for an int. malloc says "Give me this much memory" and the compiler gives...
  3. Replies
    52
    Views
    10,720

    Whenever you ask yourself "How many of these do I...

    Whenever you ask yourself "How many of these do I need?" and your answer is "I don't know."
Results 1 to 3 of 3