adspace


Which version do you prefer of the following two,

1) printf(ā€œ%sā€,str); // or the more curt one

2) printf(str);

Answer Posted / susie

Answer : & Explanation:

Prefer the first one. If the str contains any format
characters like %d then it will result in a subtle bug.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

4492