04-18-2015, 10:29 AM
yes that made a difference, now it is compelling and the output is correct but there i still a problem.
and to your question, i get my book from bookboom
Code:
chapter2_1.c: In function ‘main’:
chapter2_1.c:23:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
sizeof(char),sizeof(int),sizeof(float));
^
chapter2_1.c:23:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
chapter2_1.c:23:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
chapter2_1.c:25:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
((STRINGSIZE*3) * sizeof(char)) + sizeof (int) + (2 * sizeof(float)));
and to your question, i get my book from bookboom
Code:
http://bookboon.com/