[ create a new paste ] login | about

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

C++, pasted on Dec 30:
1
2
3
4
5
6
7
8
9
10
#include "iostream"
#define A 10
#define B 20
#define C(a,b) {int G = 10; a = a > b ? A : G;}

int main(){
int z = 10;
C(z,20);
std::cout << z << std::endl;
}


Output:
1
10


Create a new paste based on this one


Comments: