Advertisement
Guest User

Function call

a guest
Feb 24th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.72 KB | None | 0 0
  1. /*
  2.  * General instructions:
  3.  * =====================
  4.  * Compile with:     gcc -O0 -g -o fct_call
  5.  * Disassemble with: objdump -M intel fct_call
  6.  */
  7.  
  8.  
  9. int first_function(int a, int b, int c)
  10. {
  11.     return (a + b + c);
  12. }
  13.  
  14. float second_function(float a, float b, float c)
  15. {
  16.     return (a + b + c);
  17. }
  18.  
  19. float third_function(int a, float b, int c)
  20. {
  21.     return (a + b + c);
  22. }
  23.  
  24. int boaring_function(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j)
  25. {
  26.     return (a + b + c + d + e + f + g + h + i +j);
  27. }
  28.  
  29. int main(int argc, char** argv)
  30. {
  31.     first_function(1, 2, 3);
  32.     second_function(1.0, 2.0, 3.0);
  33.     third_function(1, 2.0, 3);
  34.     boaring_function(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement