program helper page of c++.

in programming •  7 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;
}
}

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!