BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan

BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan (http://bzupages.com/)
-   Object Oriented Programming (http://bzupages.com/35-object-oriented-programming/)
-   -   last time we done (http://bzupages.com/f35/last-time-we-done-702/)

shmsa 07-09-2008 04:31 PM

last time we done
 
It is that code which we have done last time in class


Code:

#include
#include
using namespace std;
inline void func1(int& var1)
{
 
 cout<<"you are inside the inline function"<  var1=var1+2;

}
int var3;
int& func2(int& var1)
{
 var3=10;
 cout<<"you are inside the function 2 "<  var1=var1+2;
 return var3;
}
int main()
{
 int var1=5;int var2;
 func1(var1);
 cout<<"the new value of var1 is = "<  var2=func2(var1);
 cout<<"the value returned by function 3 is = "< }



All times are GMT +5. The time now is 12:10 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.