Friday, March 5, 2010

47

#define function(a) printf("Answer: %d",a)
int main()
{
extern int a;
printf("%d",printf("%d",function(scanf("%d",&a))));
return 0;
}
int a=20;

if your input is '2' ,then predict the output.

Output:


Answer: 1 9 1

Logic:
To understand the logic read the followingpost
printf function returns
Scanf inside printf

0 comments:

Post a Comment