GLOBAL VARIABLES

 #include<iostream>

using namespace std;

int a,b;

int multiply()

{

    a=198;

    return 0;

}

int main()

{

    cout<<"BEFORE PROCESSING " ;

    a=19;

    cout<<a<<"\n";

    multiply();

    cout<<"AFTER PROCESSING "<<a;

    return 0;

}



Comments

Popular posts from this blog

LIST ADT USING LINKED LIST

CLASSES CREATION

SORTING PROGRAM