3 years, 8 months ago.

printing integer

i am holding a count in my program and after i process this count i want to display via code below

lcd.printf("count is : ", count);

by the way count is an integer.

the lcd displays only " count is : " why is the integer did not show up ?

Question relating to:

Comment on this question

1 Answer

3 years, 8 months ago.

You need to tell it where to print the integer, it won't just put it after each other, see: So in this case you need to use: "count is : %d"

To post an answer, please log in.