Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Conditional statement

This type of statement a used for controlling the flow of execution and makes
user instruction query excursion.
It have two categories :-
(1) single selective statement
(2) multiple selective statement
Single selective statement :-
We define a single condition in is category the ……
Condition become booling it have following types.
(1)simple it statement …………like name,……… it have only
true pact so we more only one direction.
Simple it statement :-
Syntax :-
If (condition)
{
Statement
}
switch
switch is multiple selective statement where conditions has been
even in the from of symbol variable or expiration without using any
relational or logical operator.
The main deferent a between and switch statement is that switch
fast.
Syntax :-
If(avg<0ll avg>100)

Start

Cas Math statement


e

Unmatched

Cas
math
statement
e

statement

def
oul
in above syntax condition check according a case special if define
expression match with any case then respective statement has been
statement other voice define part useful we in switch statement
match to conditional executed matching with case and in match will
be executed in default.

array
it is a homogeneous data type which is used to canten similar values
it is also a drive data type witch mains it consist from primary data
type.

Declearation of array :-
Syntax :-
Data type array name [size];
.eq int a[2];
Memory reprention of array :-
It is a static data stractor it all ways
minimize also by 0
A[0] a[1]
Eslizationof memory :-
Like simple variable be can also enilise array by
sarten values
Int a[2];
a[0]=10;
a[1]=20;
or
int a[2]={10,20};

You might also like