Here I have somethings that I learned,
int is for integers (decimal numbers) without floating points. There are some specific identifiers for longer datas (long int and long long int).
float is for decimal numbers with floating points. There are also some specific identifiers for longer datas (long float and long long float), and also double for only two digits of floating points.
char is for any characters that is in the files of computer inputs (that is registered in ASCII). Any character registered has ASCII values. There is one thing called string, it is basically an array of char.
Scanning and Printing are essential as well.
for scanning and printing, the inputs are in this identifications,
%d for integers, %ld for long integers, and %lld for long long integers.
%f for float/double, %lf for long float/double, %llf for long long float/double.
%c for char and %s for string.
No comments:
Post a Comment