Horje
c++ for loop syntax Code Example
c++ for loop syntax
for(int i =0; i<6;++i){//initialize;condition;updation
  cout<<i<<endl;//code block
}//first it initializes, then checks the condition, then runs the code block and at last updates 'i'
c++ for loop
for (initialization; condition; update) {
    // body of-loop 
}
define for loop c++
#define FOR(x,a,b) for(int x = a; x <= b; x++)
#define FOD(x,a,b) for(int x = a; x >= b; x--)
#define REP(x,a,b) for(int x = a; x < b; x++)
#define RED(x,a,b) for(int x = a; x > b; x--)
c++ for loops
#include <iostream>
#define FOR(i,a) for (int i = 0; i < a; i++)

FOR(i, 3) cout << i << endl;
loop in c++
out << size;
Source: leetcode.com




Cpp

Related
c++ program to find gcd of 3 numbers Code Example c++ program to find gcd of 3 numbers Code Example
float in c++ Code Example float in c++ Code Example
heap allocated array in c ++ Code Example heap allocated array in c ++ Code Example
sum of first 100 natural numbers Code Example sum of first 100 natural numbers Code Example
inheritance example in C plus plus Code Example inheritance example in C plus plus Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8