Why does printf modify previous local variables?

local variable in c
printf in c
variable initialization in c
difference between static local and static global variable in c
difference between local and global variables in c with examples
local variable in c example
local static variable in c
global variable in c example