In the C programming languange, the functions of data types is for declaring variables or functions of every different data types.
Let's Check it out !
Data Types
1. Int
Basic signed integer type. Capable of containing at least the [−32767 s/d +32767] range. It is at least 16 bits in size.
The format of Int is %d
2. Char
Actually this data type can be either signed or unsigned depending on the implementation.
The format of Char is %c
3. Float
This data type usually reffered to as a single float type and used for decimal number of mathematic problems.
The format of Float is %f
4. Double
The float type, usually referred to as a double-precision floating-point type. Actual properties unspecified (except minimum limits). the different float with double is the range data.
The format of Double is %lf
Scanf ()
For reading the input from the users we use scanf. because scanf reads formatted byte input from stdin.
Printf ()
For Writing an output we use Printf, because Printf prints formatted byte output to stdout, a file stream or a buffer.
The format can be a simple constant string, but you can specify %d, %c, %f, %lf, etc. to print or read integer, character or float respectively. There are many other formatting options available which can be used based on requirements.
- Jumat,02
- 0
The Explanation of each data types in C
Diberdayakan oleh Blogger.
Text Widget
Popular Posts
-
How To Install Qt Creator Whether you are creating a mobile app, desktop application or a connected embedded device, Qt Creator is ...
-
In making the decisions, we have to specify the conditions to be evalueted by the program. The statement are executed if the conditi...
-
R ecursion is the process of defining a problem (or the solution to a problem) in terms of (a simpler version of) itself. For example, ...
-
Struct Struct is a data type that can perform multiple data storage interlinked (such as name, id number, age) as a whole. Struct consists...
-
To use file I/O in C, you generally have stdio.h included at the top of your file (most C programs include this anyway): ...
-
C functions exchange information by meaning of parameters and arguments. The term parameter refers to any declaration within the par...
-
In this case we want to print 'Hello World' by using the C compiler. Let's check it out ! Step 1 Open the Dev-C++ for mak...
-
There are times when we need to store a complete list of numbers or other data items. You could do this by creating as ...
-
#Include <Stdarg.h> To declare a function that will use a variable number of arguments, you must make sure you have at least on...
-
A looping statement is used to allow us to execute a statement or group statements multiply times. This is the looping diagram ! ...
0 komentar:
Posting Komentar