public class College
{
int fee;
public College(int fee)
{
fee=fee;
}
void display()
{
System.out.println(fee);
}
public static void main(String...k)
{
College c=new College(20000);
c.display();
}
}
What is the output of the following code?#includestdio.hvoid main( ){int i=2;if(++i &&(i==2))printf("Hello");elseprintf("Welcome");}
What is the output of the following code?#includestdio.hint fun();int main(){for(fun();fun();fun()){printf("%d",fun());}return 0;}int fun(){int static num =10;return num--;}