अंतिम बार 02/03/2023 को अपडेट किया गया
Control Strings, या Format String, जो स्वरूपित कंसोल इनपुट/आउटपुट (प्रिंटफ और स्कैनफ) का पहला पैरामीटर है, अनुक्रम या प्रारूप या जिस तरीके से पाठ को मानक इनपुट से पढ़ा जाएगा, या उस पर मुद्रित किया जाएगा, निर्दिष्ट करता है। मानक आउटपुट। उदाहरण के लिए, % वर्ण उस स्थिति पर मुद्रित/पढ़ने के लिए डेटा मान के प्रकार को निर्दिष्ट करता है। % के बाद का वर्ण डेटा का प्रारूप है, जैसे:-
%d = For integers
%c = For character
%f = For float
%i = For signed decimal integers
%u = For unsigned decimal integers
%o = For octal integers
%s = For string
%x = For hexadecimal integers
Rerd More:
Mostly Use
%d = Integer (int) प्रकार की वेरिएबल में स्टोर करने के लिए
%C = अक्षर को पढ़ने के लिए
%f = float प्रकार के वेरिएबल में स्टोर करने के लिए
%g = float प्रकार के वेरिएबल में स्टोर करने के लिए