program helper page of c++.

in #programming7 years ago

Hey steemians.

I brought you the program helper post.

#include <iostream>
using namespace std;
void alpha();
//Global variable
int a;
int main(){
//local variable in main function
    a=10;
cout<<a<<endl;
cout<<"pond!"<<endl;
alpha();
}
void alpha(){
//local variable in user defined function
a=90;
cout<<a<<endl;
{
//block variable
    a=28;
    cout<<a<<endl;
}
}

Coin Marketplace

STEEM 0.17
TRX 0.25
JST 0.034
BTC 96296.42
ETH 2809.07
SBD 0.68