Doubt about memory address and pointer

Asked

Viewed 19 times

1

The return of the printf function in the code below represents the memory address occupied by to?

#include <stdio.h>

main() {
    int a = 123;
    int *b = &a;

    printf("%d", &a);
    printf("%d", b);
    printf("%d", *b);
}
  • The first printf is the same as talking: to occupies the address of memory xxxx?
  • The second printf is the same as talking: the pointer b points to the address to?
  • The third printf is the same as speaking: the memory address of b is xxxx?
  • Please do not keep repeating the same question, there in the previous links where there is already an answer to these questions.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.