+ 1

Using Secure Printf

My programming book is saying that when I am using printf, I should use like these: printf("%s","Why like this"); printf("Why not like this"); Why should I use with format-control string?

22nd Nov 2017, 8:21 PM
Yusuf
Yusuf - avatar
3 Respostas
+ 1
I found the answer in internet. If I use printf without format-control string, the user can enter some arguments that can effect my program. For example:%n. Thanks to everybody.
22nd Nov 2017, 8:28 PM
Yusuf
Yusuf - avatar
+ 1
I have just read that link. :D
22nd Nov 2017, 8:29 PM
Yusuf
Yusuf - avatar
0
Could you also answer my 2d array question? @Ace
22nd Nov 2017, 8:31 PM
Yusuf
Yusuf - avatar