OOCP1_3

//HiTech Banda //bit.ly/hitechbanda #include <iostream.h> #include <conio.h> int& large(int&,int&); void main() { clrscr(); int a=5,b=10; int &ref=large(a,b); cout<<"\nLarger no. : "<<ref; getch(); } int& large(int& x,int& y) { if(x>y) return x; else return y; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.