Rabu, 30 September 2015

Each Data Types in C, Input and Output in Programmin, Input Redirection

Hello readers!

I want to show you about little bit of data types in C, input and output in programming, and input redirection.

1. Data types in C

    Example:

     - int: For integer number.
       The input is &d and the output is %d
    
     - float: For decimal or fraction.
       The input is &f and the output is %f
    
     - double: same like float but it has more range.
        The input is &lf and the output is %lf
  
     - char: to write a word.
        The input is &c and the output is %c 

That's the example of data types in C that i know. There is still more. you can see it from internet, or you can see from this link: https://en.wikipedia.org/wiki/C_data_types  (i recommended from wikipedia hehe)


2. Input and Output in programming

    Input is to put the data to the program, and Output is to show the data from the program. Usually  people use scanf() for input and printf() for output. Let's see the example:


3. Input Redirection

    You can see from this link: https://chortle.ccsu.edu/java5/Notes/chap22/ch22_2.html

Tidak ada komentar:

Posting Komentar