+ 2

Can anybody tell meaning of %s and %d in some codes

14th Apr 2020, 9:11 AM
Anurag Singh
Anurag Singh - avatar
2 Respuestas
+ 4
Yes %s means it is going print or scan string means some name or address or anything ,,,,... ram , shayaam or anything %d means it is going to take some integer like 1 , 122, 13 , etc
14th Apr 2020, 9:16 AM
Raj Kalash Tiwari
Raj Kalash Tiwari - avatar
+ 3
%s used for String (eg. "Solo","text" etc) & %d used for integer type(eg. 0,1,2,100 etc)
14th Apr 2020, 9:14 AM
Shaurya Barnwal