You are not logged in.

#1 2015-05-25 09:49:22

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Output Of The Program?

Question:
What is the output of the following code?
# define i 20
main()
{
printf("%d..",i);
fun();
printf("%d",i);
}
void fun()
{
#undef i
#define i 30
}

Option A):
Error
Option B):
0
Option C):
20..30
Option D):
20..20

Correct Answer is Option D):
20..20


Failure is the first step towards seccess.

2015-05-25 09:49:22

Advertisement
Ads By Google

Re: Output Of The Program?



Board footer