Hello to All
what is the different between printf & sprintf and scanf & sscanf
I read the help but i dont understand it
printf("Hello world \n"); aprintf("Hello world \n"); ------------------------------ int k; scanf("%d",k); sscanf("%d",k);
.
Thanks = 10x
Mayer
mayer, please don't be offended by the responses here. the people that reply are generally good guys who know a lot, and sometimes they are a little short of breath, too (so am I, sometimes...) you can use sprintf to format data in a certain way. you can easily "mix" types into a destination buffer, before you do something with it. for example, you can format a floating point number according to a predefined desire and have it end up into your buffer. in addition, you can typecast with it. now go read the specification, think again about what you were told here and you'll be alright.