tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code03:16

C format specifiers 🔧

Bro Code ↗

From the creator

C format specifiers % tutorial example explained #C #format #specifiers // format specifier % = defines and formats a type of data to be displayed // %c = character // %s = string (array of characters) // %f = float // %lf = double // %d = integer // %.1 = decimal precision // %1 = minimum field width // %- = left align float item1 = 5.75; float item2 = 10.00; float item3 = 100.99; printf("Item 1: $%8.2f\n", item1); printf("Item 2: $%8.2f\n", item2); printf("Item 3: $%8.2f\n", item3); return 0;

Published 2021-08-15 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code