Embedded C Programming Style: Tutorial 4 - Constants

preview_player
Показать описание
This tutorial describes the correct use of the "const" keyword, specifically for passing parameters to a function.
Рекомендации по теме
Комментарии
Автор

sprintf(pWifi, "...", pWifi); kind of resets the variable,
seem i had to introduce temp variable first and do sprintf and then strcpy temp to pWifi.
why is there a difference in behavior ?

karthikeyanbalasubramanian
Автор

sprintf(pWifi, "%s - 4G\n", pWifi);

sprintf(pWifi, " %s - 4G\n", pWifi);

if i add a space before %s, the output is completely different. Why its happening.


Bye the way this tutorial is really awesome ....very helpfull...

manikantankv
welcome to shbcf.ru