#include <stdio.h>
int main() {
char c = 'A';
char* pc = &c;
printf("pc = %lld\n", (long long) pc);
printf("pc + 1 = %lld\n", (long long) (pc + 1));
int i = 42;
int* pi = &i;
printf("pi = %lld\n", (long long) pi);
printf("pi + 1 = %lld\n", (long long) (pi + 1));
int ai[] = {1, 2, 3, 4, 5};
printf("%s\n", ai == &ai[0] ? "true" : "false");
for (int i = 0; i < sizeof(ai) / sizeof(ai[0]); ++i) {
printf("%s\n", *(ai + i) == ai[i] ? "true" : "false");
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: