I have seen several places like this
please help me to understand the use of the above statement. Will * and & not cancel out? Another statement likeCode:int main(int argc, char *argv) { char value=12; int *ptr = (int *)(&value); } Complicated statements like structure in place of int means what? Why do you typecast?
Please help.Code:int *ptr = (int *)(&value) and int *ptr = (int *) &value; both are same.