Let us understand Types of instruction in C :
➡️Type Declaration :
The instruction is used to declare the type of variables used in a C program. Any variables used in the program must be declared before using it in any statement.
The type declaration statement is written at the beginning of the main() function.
Ex:
int bas;
float rs, salary;
char name, code;
➡️Arithmetic Instruction
A C arithmetic instruction consists of a variable name on the left hand side of = and variables 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 /.
Ex:
int ad;
float kot, deta, alpha;
ad = 3200;
kot = 0.0056
deta = ad/kot + 3.2 * 2/5;
➡️Control Instruction
As the name suggests the control instructions enables us to specify the order in which the various instruction in a program will be executed by the computer.
In other words it determines the flow of control in a program.
There are four types of control instructions in C:
▶️Sequence control
▶️Selection/decision control
▶️Repetition or loop control
▶️Case control instruction
🌐 C/C++Programming Related Courses:
Foundation Course: https://www.hexnbit.com/product/found...
✨ HEXNBIT Social Media :
Facebook: / hexnbit
Instagram: / hexnbit
Twitter: / hexnbit_life
YouTube: / hexnbit
🎓 Other Courses:
Visit : https://www.hexnbit.com/
About us: Hexnbit provides one-stop solutions for the students & working professionals in Skill development programs. The platform not only provides subject expertise to the candidates but also, give them industry exposure to apply their learnings analytically in a practical real-world.