Is this a pointer? (And if so, how was it initialized?)

前端 未结 4 1344
夕颜
夕颜 2021-01-25 05:43

There\'s a header file, esUtil.h, with a definition for a structure called ESContext, and one of its members is userData. userData is a pointer to void.

The body of a p

4条回答
  •  遇见更好的自我
    2021-01-25 06:24

    Yes, it is a pointer. The line

    UserData *userData = esContext->userData;
    

    declares a variable called userData with type UserData * (a pointer to UserData) and initializes it with the value esContext->userData.

提交回复
热议问题