(Move to ...)
▼
Program to illustrates Inline Functions
#include <iostream.h>
#include <conio.h>
inline int square (int a) // inline function definition
{
return (a*a);
}
void main(void)
{
cout << "Square(10) = " << square(10);
cout << "\n Square(10+10) = " << square(10+10);
getch( );
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment