Sprintf

From ElectroDragon
Revision as of 09:09, 19 February 2020 by Chao (talk | contribs) (Created page with "== Example == float test1 = 3.54; char num_char[4]; sprintf(num_char, "%f", test1); category: C")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Example

float test1 = 3.54;
char num_char[4];
sprintf(num_char, "%f", test1);