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

Related Posts