12.05.2015 Views

type - David Vernon

type - David Vernon

type - David Vernon

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Functions<br />

References as Return Values<br />

//REFFUN: Reference as return value.<br />

#include <br />

int &smaller(int &x, int &y)<br />

{ return (x < y ? x : y);<br />

}<br />

int main()<br />

{ int a=23, b=15;<br />

cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!