I have a given string
char *names = "ABC";
Now as part of understanding pointer and it casting I want to converting the string to it ascii code but using pointer.
Here what I have done thus far.
char *name = "ABC";
int *array;
array = (int *) name;
printf("the array value is %d ",*array);
but unfortunately I'm not able to understand why it print 4407873
as the value.
Note: Also I aware it can be done using atoi function but It would be truly helpful if I can understand how to do the above way.