Data type in C language


In this tutorial we will learn about data type declaration instructions 
 Instructions
Programming statement is called instructions 

  • C instructions are the commands in the program that instructs the compiler to do certain action. ...
  • These instructions are used to perform some arithmetic calculation within the program. ...
  • () → * / → + – → =
  • Like the name suggests, these instructions are used to control the flow of the program execution.

Instructions are four types
  • Data type declaration instructions 
  • Input Output instructions
  • Arithmetic instructions 
  • Control instructions
Data type declaration instructions :

One of the use of these data types is during declaration of variables. Declaring variables is a statement telling compiler about the kind of data that variable can hold

Input Output instructions :
Input means to provide the program with some data to be used in the program and Output means to display data on screen or write the data to a printer or a file. C programming language provides many built-in functions to read any given input and to display data on screen when there is a need to output the result.

User interaction with a program on machine required input/output device
Standard Input device is keyboard and standard output device is monitor.

An instruction which is used to print something on the screen or any other output device is known as output instruction. Similarly, an instruction which is used to input information from the user is known as input instruction.


Arithimetic instructions :
A C arithmetic instruction consists of a variable name on the left hand side of = and variable names & constants on the right hand side of =. The variables and constants appearing on the right hand side of = are connected by arithmetic operators like +, -, *, and

Control Instruction 
Control Instructions in C. As the name suggests the 'Control Instructions' enable us to specify the order in which the various instructions in a program are to be executed by the computer. In other words the control instructions determine the 'flow of control' in a program.















Comments

Popular posts from this blog

C language introduction

C keyword and identifier

Variable in C language