[ create a new paste ] login | about

Link: http://codepad.org/IQlvrKtR    [ raw code | output | fork ]

nvsofts - C, pasted on Oct 28:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>

int a(void)
{
  printf("a\n");
  return 1;
}

int b(void)
{
  printf("b\n");
  return 0;
}

int main(void)
{
  if (a() || b()) {
    puts("hello");
  }
  return 0;
}


Output:
1
2
a
hello


Create a new paste based on this one


Comments: