int fun(); This prototype tells the compiler that the function fun() does not accept any arguments and it returns an integer value. while(i) The value of i is not initialized so this while condition is failed. So, it does not execute the while block. It prints "Hello".