1 2 3 4 5 6 7 8 9 10 | #include <stdio.h>
int main(int argc, const char *argv[])
{
int a = 10;
int* b = &a;
printf("a == %d, b == %p\n", a, (void*)b);
// void* is just an address to any type.
return 0;
}
|
© Copyright 2016 Alexander J. Quinn This content is protected and may not be shared, uploaded, or distributed.