filmov
tv
If else statement VS switch statement | which one is better
Показать описание
This episode shows what is the comparison between if else statement and switch case statement in tamil.
the switch case is always faster than the if else statement because of the jump table that will be created during the compilation and only the expression value and the constant value will be checked that is switch case will check for equality..
#if-else #switch #kainaatu #difference #learninTamil
If-else” and “switch” both are selection statements. The selection statements, transfer the flow of the program to the particular block of statements based upon whether the condition is “true” or “false”.
if statement evaluates integer, character, pointer or floating-point type or boolean type.
switch statement evaluates only character or integer value..
The switch statement is easy to edit as it has created the separate cases for different statements whereas, in nested if-else statements it becomes difficult to identify the statements to be edited..
Gadgets used
------------------------
4. Mic used in this video - Boya B1 M1 pro omnidirectional - To buy click this link :
------------_-------_------------------------_----------_----------
-----------_-------_------------------------_----------_-----------
easy program writing method, beginners guide to write programs, c programming made easy, easy trick to write c program, youtube class to teach c program, youtube tutorial for c language, online c class, easily learn c in tamil
the switch case is always faster than the if else statement because of the jump table that will be created during the compilation and only the expression value and the constant value will be checked that is switch case will check for equality..
#if-else #switch #kainaatu #difference #learninTamil
If-else” and “switch” both are selection statements. The selection statements, transfer the flow of the program to the particular block of statements based upon whether the condition is “true” or “false”.
if statement evaluates integer, character, pointer or floating-point type or boolean type.
switch statement evaluates only character or integer value..
The switch statement is easy to edit as it has created the separate cases for different statements whereas, in nested if-else statements it becomes difficult to identify the statements to be edited..
Gadgets used
------------------------
4. Mic used in this video - Boya B1 M1 pro omnidirectional - To buy click this link :
------------_-------_------------------------_----------_----------
-----------_-------_------------------------_----------_-----------
easy program writing method, beginners guide to write programs, c programming made easy, easy trick to write c program, youtube class to teach c program, youtube tutorial for c language, online c class, easily learn c in tamil
Комментарии