Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C - printf precision modifiers
//gcc 5.4.0 #include <stdio.h> //see http://en.cppreference.com/w/cpp/io/c/fprintf int main(void) { char* str; str = "superdooperlongstring"; printf("give me no more than 6 chars from the really looong string: '%.6s'\n", str); str = "hi"; printf("give me no more than 6 chars from the short string: '%.6s'\n", str); return 0; }
run
|
edit
|
history
|
help
1
Lp
CpointfunProd
Assignment 3
2017_1117_TARTAGLIA
linear hybrid cellular automaton utilizing rules 90 and 150 with period of (2^64)-1 for generating high quality random bits is reversible
C_141106_Factorial
Bitwise Operations
HelloWorld
main.c
HeapSort