Hey, i found quite a few methods to ADD TWO NUMBERS WITHOUT USING THE + OPERATOR
, but this one is extremely weird.
What does this printf statement mean ?
What is %*d ?????
#include< iostream >
using namespace std;
int main()
{
int a,b,sum;
scanf("%d",&a);
scanf("%d",&b);
sum=printf("%*d%*d",a,a,b,b);
printf("\n");
printf("%d\n",sum);
system("pause");
return 0;
}
All i know is that printf returns the number of characters printed .