Saturday, February 20, 2010

Scanf inside printf

#include < stdio.h >
int main()
{
int a,b;
printf("%d",scanf("%d %d",&a,&b));
}


Output:


2


Logic:


To know what'll return by scanf function and printf function , read these post:

scanf returns
printf function returns

0 comments:

Post a Comment