@mehender exactly bro.

program -->


 #include <stdio.h>
  #define PrintInt(expr) printf("%s : %d\n",#expr,(expr))
  int FiveTimes(int a)
  {
      int t;

      t = (a<<2) + a;    // change - added parenthesis.

      return t;
  }

  int main()
  {
      int a = 1, b = 2,c = 3;

      PrintInt(FiveTimes(a));
      PrintInt(FiveTimes(b));

      PrintInt(FiveTimes(c));
      return 0;
  }

o/p-->

FiveTimes(a) : 5
FiveTimes(b) : 10
FiveTimes(c) : 15

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to