Hi, I have this code and I wants by using struct to insert "1" to the size and afterwards print it, but it gives a "syntax ; error" although all ";" decent in my code's script.
code:
any help for how to correct it for printing? thanks.Code:#include <stdio.h> #include <string.h> #include<stdlib.h> typedef struct { char num[4]; char ters[4]; int size; char *address; }memIdentifier; main() { memIdentifier.size=1; memIdentifier.addres='Hello'; printf("%d", memIdentifier.size); printf("%c", memIdentifier.address); return 0; }