Add inline-code.cpp
This commit is contained in:
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;
|
||||
}
|
Reference in New Issue
Block a user