From b73ab5aacb26b0fc788ae9911fe8e6c992b3da8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Mon, 23 May 2022 13:07:16 +0200 Subject: [PATCH] Add inline-code.cpp --- 01-inline-functions/inline-code.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 01-inline-functions/inline-code.cpp diff --git a/01-inline-functions/inline-code.cpp b/01-inline-functions/inline-code.cpp new file mode 100644 index 0000000..8494a5a --- /dev/null +++ b/01-inline-functions/inline-code.cpp @@ -0,0 +1,12 @@ +#include + +inline int sum(int a, int b) +{ + return a + b; +} + +int main() +{ + int aux = sum(7,9); + return EXIT_SUCCESS; +}