#include<stdio.h>
#include<iostream.h>
int count; /* count is global*/
void function1();
void function2();
void main()
{ clrscr();
count=100;
function1();
getch();
}
void function1()
{
int temp;
temp=count;
function2();
cout<<"\n the value of temp and count ::" <<temp<<" " <<count;
}
void function2()
{
int count;
for(count=1;count<10;count++)
putchar('*\n');
}
#include<iostream.h>
int count; /* count is global*/
void function1();
void function2();
void main()
{ clrscr();
count=100;
function1();
getch();
}
void function1()
{
int temp;
temp=count;
function2();
cout<<"\n the value of temp and count ::" <<temp<<" " <<count;
}
void function2()
{
int count;
for(count=1;count<10;count++)
putchar('*\n');
}
No comments:
Post a Comment