Tuesday, January 5, 2010

1

#include < iostream.h >
int a=0;
int fn1()
{
return(a+=1);
}
int fn2(int a)
{
return(a++);
}
main()
{
int a=40;
cout< < a;
fn1();
cout< < a;
fn2(a++);
cout< < a;
}

output:

40

40

41

0 comments:

Post a Comment