#include<iostream>#include<cstdio>using namespace std;#define PI 3.14void fun(){printf("%f\n",PI);} int main(){printf("%f\n",PI);#define PI 3.141528fun();}
Standard input is empty
3.140000 3.140000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!