struct student {
char name[64];
int age;
int number;
float marks;
};
what would be the syntax to convert struct into unsigned char* ?
--------
in other file
I am getting here same above unsigned int *, I had to reinterpret the unsigned int * into struct and access struct fields/members here.
what would be syntax to convert unsigned int* into struct and access student struct members?
what would be the syntax to convert struct into unsigned char* ?
I'm not sure why you would want to do this. How would you convert a C-string to a pointer to int? You can, but why would you want to do this? Could you provide more context as to why you need to convert it to a pointer to unsigned char?