Top "Printf" questions

`printf` is a common function for formatted output.

Display the binary representation of a number in C?

Possible Duplicate: Is there a printf converter to print in binary format? Still learning C and I was wondering: Given …

c binary printf representation
How to display (print) vector in Matlab?

I have a vector x = (1, 2, 3) and I want to display (print) it as Answer: (1, 2, 3). I have tried many approaches, including: …

matlab printf disp
What is the use of the %n format specifier in C?

What is the use of the %n format specifier in C? Could anyone explain with an example?

c printf
How to printf a memory address in C

My code is: #include <stdio.h> #include <string.h> void main() { char string[10]; int A = -73; …

c pointers printf memory-address unary-operator
printf with leading zeros in C

I have a floating point number such as 4917.24. I'd like to print it to always have five characters before the …

c formatting printf
Format number as fixed width, with leading zeros

The following code a <- seq(1,101,25) b <- paste("name", 1:length(a), sep = "_") produces this output: "name_1" "name_26" "…

r format printf
What's up with Java's "%n" in printf?

I'm reading Effective Java and it uses %n for the newline character everywhere. I have used \n rather successfully for …

java newline printf
unsigned long long type printing in hexadecimal format

I am trying to print out an unsigned long long like this: printf("Hex add is: 0x%ux ", hexAdd); but …

c integer printf
What does "%.*s" mean in printf?

I got a code snippet in which there is a printf("%.*s\n") what does the %.*s mean?

c printf format-specifiers
Print the structure fields and values in C

I am interested in printing the structure fields . Typedef struct { UINT32 thread_id; BOOL is_valid; }T_THREAD; Is there …

c printf structure