Home > Back-end >  Daily q&a
Daily q&a

Time:09-18

Void happens (void * data, int type)
{
The switch (type)
{
Case sizeof (char) :
(* (data) (char *)) + +;
break;
Case sizeof (short) :
(* ((short *) data)) + +;
break;
Case sizeof (long) :
(data) (*) (*) + +;
break;
}
(data) (char *) (*) the detailed explain

CodePudding user response:

(char *) data) convert data forced to a pointer to the string,
* (data) (char *) point to the first value of the string,
(* (data) (char *)) + +; The first value plus one,

CodePudding user response:

(char *) data) convert data forced to a pointer to the string,
* (data) (char *) point to the first value of the string,
(* (data) (char *)) + +; Move back to a string of characters, the second
  • Related