Here TEST is a struct pointer. Structure contains integer. What can be the right factor for it? The TEST structure is as follows.I am using gcc as compiler.
typedef struct TEST_HELP{
int value;
} *TEST, TEST_NODE;
I’m guessing you have something like:
This will not work because
printfdoesn’t know how to print a TEST_HELP structure. You need to print the data within it:You should be using
%dforintvalues.%ldis forlongvalues, hence the cast.