A computer can understand only 0's and 1's and can perform integer and floating point arithmetic i.e. can only execute on integers and real numbers. Going further in C, we have following basic data types:
* int(integer) size 4 bytes
* short(short integer) size 2 byte s
* long( long integer) size 4 bytes
* float(floating point) size 4 bytes
* double(double-precision float) size 8 bytes
* Characters(char) size 1 byte
(all stats from a 32-bit processor running gcc version 4.3.1, results depends on machine and compiler)
The % sign indicates that some other argument is substituted in the place, in case of printf and scanf. For int replacement %d, for float %f, for char %c and as specified in previous post.
Next the scanf() function, used for input from standard input.
The % sign indicates that some other argument is substituted in the place, in case of printf and scanf. For int replacement %d, for float %f, for char %c and as specified in previous post.
Next the scanf() function, used for input from standard input.

No comments:
Post a Comment