Is there a way to put a variable inside a string formatting like d in C? So I can make it vary depending on the variable results?

前端 未结 0 357
不思量自难忘°
不思量自难忘° 2020-12-18 22:35
printf("%04d\\n", vet[i]);

Is it possible to make something like "%0(x)d" so that the formatting can vary?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题