C++ Question Of Day


Home
Guess the output of the following program.
			
			#include < iostream.h>
			int a = 1;
			int f(int a) { return a; }
			int g(int x = f(a)) { return x; }
 
			int h() {
				  a = 2;
  					{	
					    int a = 3;	
					    return g();
  					}
				}
 
			int main() {
				  cout << h() << endl;
			}