Wednesday, 15 April 2015

c - Warning: format argument is not a pointer (arg 2)? -



c - Warning: format argument is not a pointer (arg 2)? -

i error: warning: format argument not pointer (arg 2)

with line: printf("%s \n", *(group_list->name));

i don't understand why problem considering name pointer char. problem using s? have utilize different specifier?

use instead:

printf("%s \n", group_list->name);

s conversion specifier expects char * not char.

c pointers char printf

No comments:

Post a Comment