This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

what is the difrrent between printf & sprintf and scanf & sscanf

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

Parents
  • Please tell me how you would use strcpy(), ... to process an integer zero-filled to five positions? Or how would you use your suggested functions to know the address value of a pointer?

    Do you really think that "formatted" in this case is the same as strcpy()? That sounds more like unformatted printing.

    If printf() is configured to emit the text to your first serial port, how would you emit text to a memory region in your flash, or on the SPI bus or on a LCD display?

Reply
  • Please tell me how you would use strcpy(), ... to process an integer zero-filled to five positions? Or how would you use your suggested functions to know the address value of a pointer?

    Do you really think that "formatted" in this case is the same as strcpy()? That sounds more like unformatted printing.

    If printf() is configured to emit the text to your first serial port, how would you emit text to a memory region in your flash, or on the SPI bus or on a LCD display?

Children
No data