Advertisement
obernardovieira

Comparison has function param

Jul 10th, 2014
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void get_the_result(int r) {
  4.     printf("%d", r);
  5. }
  6.  
  7. int main() {
  8.     int a=5;
  9.     int b=5;
  10.     int c=6;
  11.     get_the_result(a==b);
  12.     get_the_result(b==c);
  13.     get_the_result(b>=c);
  14.     get_the_result(b<=c);
  15.     return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement