1
Lecture 2 Basics of C ECS501U: C Programming (2014/15) Slide 35 Conversion specifiers & Escape characters char chain of characters between ” and ” (string) int long int unsigned int long unsigned int octal hexadecimal float double long double floating point in scientific notation %e or %f (smaller) %c %s %d %ld %u %lu %o %x %f %f or %lf %Lf %e %g \a \b \f \n \r \t \v \\ \' \" \? alert (bell) backspace form feed new line carriage return horizontal tab vertical tab backslash single quote double quote question mark

C Programming - Conversion Specifier

Embed Size (px)

DESCRIPTION

C Programming - Conversion Specifier

Citation preview

  • Lecture2

    Basic

    sofC

    ECS501U:CPr

    ogramming(2014/15)

    Slide35

    Conversio

    nspe

    cifie

    rs&Es

    capech

    aracters

    Conversio

    nspe

    cifie

    rs&Es

    capech

    aracters

    char

    chain of characters

    between and (string)

    int

    long int

    unsigned int

    long unsigned int

    octal

    hexadecimal

    float

    double

    long double

    floating point

    in scientific notation

    %e or %f (smaller)

    %c %s %d %ld

    %u %lu

    %o %x %f%f or %lf

    %Lf

    %e %g

    \a \b \f \n \r \t \v \\ \' \" \?

    alert(bell)

    backspace

    formfeed

    newlin

    ecarriagere

    turn

    horizon

    taltab

    vertica

    ltab

    backsla

    shsin

    gleq

    uote

    doub

    lequ

    ote

    questio

    nmark