Add inline-code.cpp
This commit is contained in:
parent
af17057076
commit
b73ab5aacb
12
01-inline-functions/inline-code.cpp
Normal file
12
01-inline-functions/inline-code.cpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
|
inline int sum(int a, int b)
|
||||||
|
{
|
||||||
|
return a + b;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int aux = sum(7,9);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user