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
Erik
if you dont know the answer
Do not answer !!
He very much know the answer, since any C programmer with at least a couple of weeks of experience do know the difference.
Hint: Have you looked at the different function prototypes for the functions?
printf = print formatted sprintf = string print formatted (note the extra param)
scanf = scan formatted sscanf = string scan formatted (note the extra param)
One more turn through the manual should make it obvious what the difference is.