Category: A ll Codes
declare arrays: arraytype arrayName[arraySize]; //basic syntax example: int zakiLive[10]; Initialize arrays: int zakiLive[5]={4,5,6,8}; zakiLive[3]=8 It means value…
defining numbers in c++ code: #include<iostreaM> using namespace std; int main() { //declaring the numbers short s;…
Nested If,Else If,Else: if(a<b){ if(c>a) { statement; } statement; }else{ if(c>d){ statement; } statement; } Just…
Last tutorial we have seen about ternary But the question is why we use ternary ? if(a>b){…
switch statement int zaki; cin>>zaki; switch(zaki) { case 1: cout<<“This is 1”; break; case 2: cout<<“This is…
Basics of Loop: while(condition){ statement; } do{ statement; }while(condition); for(initialize;condition;increment){ statement; } Nested Loops: while(condition){ do{ statement;…
Recent Comments