You are not logged in.

#1 2015-04-18 05:19:54

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

Executing Following Code:

Directions:

#include
# define a 10
void main()
{
    printf("%d..", a);
    foo();
    printf("%d", a);
}
void foo()
{
   #undef a
   #define a 50
}

Question:
What will be output after executing following code?

Option A):
Error
Option B):
0
Option C):
10..10
Option D):
10..50

Correct Answer is Option C):
10..10


Failure is the first step towards seccess.

2015-04-18 05:19:54

Advertisement
Ads By Google

Re: Executing Following Code:



\n

Board footer