Question: how printf works in c language?
Answer: Printf working principle printf or print function in C takes a formatting string and couple of optional variables as input and outputs strings to console while converting input variables to strings. ... It converts it to string and appends to output buffer. If the argument is string then it does a string copy.