MC logo
Printf Demo
[^] CSc 220 Home
[Introduction] [Boolean and Control] [Functions] [Arrays and Pointers] [Dynamic Arrays] [Array Errors] [Command Array] [Standard Containers] [Structs and Classes] [Automatic Pointer] [Multi-File Programs] [Copying Objects] [Templates] [Inheritance] [Plain C I/O] [Type Odds And Ends] [Plain C Strings] [File I/O]
[Hello, World! (Plain C)] [Average C I/O] [Printf Demo] [Problems With C I/O] [Looping On Read] [Convert To Upper Case] [Indent and Blank Remover] [Reading Lines] [Safer Line Reading] [Printing C++ Strings]
#include <stdio.h>

        double d = 58.398;
        int q = 3948;
        unsigned long long ull = 391809877399481LL;
        char joe[] = "I am joe!";

        printf("%g %f [%9.5g] %d %x 0x%08x\n",
        printf("%llu %s %p\n", ull,joe,joe);