Top "Printf" questions

`printf` is a common function for formatted output.

Two decimal places using printf( )

I'm trying to write a number to two decimal places using printf() as follows: #include <cstdio> int main() { …

c++ c printf decimal
%i or %d to print integer in C using printf()?

I am just learning C and I have a little knowledge of Objective-C due to dabbling in iOS development, however, …

c console integer int printf
What is the difference between printf() and puts() in C?

I know you can print with printf() and puts(). I can also see that printf() allows you to interpolate variables …

c string output printf puts
printf not printing on console

I’m getting started in the C language. I am using eclipse (juno) as my IDE and installed CDT plugin. …

c eclipse gcc printf scanf
How to print multiple variable lines in Java

I'm trying to print the test data used in webdriver test inside a print line in Java I need to …

java printf println
Printing a char with printf

Are both these codes the same char ch = 'a'; printf("%d", ch); Will it print a garbage value? I am …

c++ c printf sizeof
Printf long long int in C with GCC?

How do I printf long long int and also unsigned long long int in C99 using GCC? I have searched …

c gcc printf c99
Code for printf function in C

Possible Duplicate: source code of c/c++ functions I was wondering where I can find the C code that's used …

c printf stdio
How to append strings using sprintf?

I am facing a serious issue with sprintf. Suppose my code snippet is: sprintf(Buffer,"Hello World"); sprintf(Buffer,"Good …

c printf
How to repeat a char using printf?

I'd like to do something like printf("?", count, char) to repeat a character count times. What is the right format-string …

c printf