Suspicious pointer conversion

Ive tried looking the answer up in several places and I can’t seem to solve it.

unsigned int analog=(unsigned int)Get_Analog_Value(rc_ana_in01);
printf(analog);

I get an error pointing to the printf statement saying suspicious pointer conversion. The analog imput is a potentiometer. As far as I know everything is wired correctly, the code even compiles and runs, but the printf isnt displaying.

PROBLEM SOLVED CLOSE THREAD/NO MORE POSTS

printf doesn’t work that way
You need to have a string, even if your just printing a single int
so you’ll need to write it like this


printf("%d
", analog); //
 for newline

thanks, yea I figured it out on my own with the help of a mentor(who JUST showed up) I apprieciate the help.

PROBLEM SOLVED, CLOSE THREAD/NO MORE POSTS