Whats the difference between Struct tag and Pointer to Struct? Are the same? Or Here is my example, Is obj and *var two different memory location?
#include <stdio.h>
#include <stdlib.h>
struct alloc {
char data;
};
int main(int argc, char** argv) {
struct alloc obj;
struct alloc *var = calloc(5,sizeof(struct alloc));
(var -> data) = 'P';
printf("Data:%d",obj.data);
return (EXIT_SUCCESS);
}