Advertisements

saneman wrote:
> In a file I have made:
>
> size_t bb;
> bb = 3u;
> printf("bb %d\n");
>
> which prints:
>
> bb 2280640
>
> But what is 'u' and why does it print the above number?
>
>
Prints garbage from stack, there is no argument given for %d.
Should be : printf("bb %d\n",bb);

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!