Line 207: Char 3: runtime error: load of null pointer of type ‘int‘ [__Serializer__.c]

created at 10-12-2021 views: 34

This is because what you set in the function is an array of local variables. When you exit the function, the array of variables will also be destroyed. When the pointer comes back to find the variable is not found, you also return a lonely return


One is to set global variables outside the function

One is to modify your definition with static and define it as a static global variable

There is also a dynamic allocation of space using malloc

created at:10-12-2021
edited at: 10-12-2021: