Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

printf() and integer type

Hello!

I have a problem with printf() command.

For this:

int a = 5;

printf (a);

Eclipse send me warning passing argument 1 of 'printf' makes pointer from integer without a cast

and nothing is printed in console.

What's the reason of this?

Thanks.