Word: Constant
Meaning: स्थिरांक
Pronunciation: कॉन्स्टेंट
Short Description:
English: A constant is a value in programming that does not change during the execution of a program. It is used to store fixed values like mathematical constants (e.g., π = 3.14) or configuration settings.
Hindi: प्रोग्रामिंग में, स्थिरांक (कॉन्स्टेंट) एक ऐसा मान होता है जो प्रोग्राम निष्पादन के दौरान नहीं बदलता। इसका उपयोग गणितीय स्थिरांक (जैसे π = 3.14) या कॉन्फ़िगरेशन सेटिंग्स को संग्रहीत करने के लिए किया जाता है।
Examples of ‘Constant’ in Sentences:
# | English Sentence | Hindi Translation |
---|---|---|
1 | A constant holds a fixed value that does not change. | एक स्थिरांक एक निश्चित मान रखता है जो नहीं बदलता। |
2 | The value of π (pi) is a mathematical constant. | π (पाई) का मान एक गणितीय स्थिरांक है। |
3 | In JavaScript, const is used to declare a constant variable. | जावास्क्रिप्ट में, const का उपयोग एक स्थिरांक वेरिएबल घोषित करने के लिए किया जाता है। |
4 | Constants improve code readability and prevent errors. | स्थिरांक कोड की पठनीयता बढ़ाते हैं और त्रुटियों को रोकते हैं। |
5 | A constant cannot be reassigned once declared. | एक बार घोषित किए गए स्थिरांक को पुनः असाइन नहीं किया जा सकता। |
6 | Using constants makes programs more efficient. | स्थिरांकों का उपयोग प्रोग्राम को अधिक कुशल बनाता है। |
7 | Speed of light (c = 299,792,458 m/s) is a universal constant. | प्रकाश की गति (c = 299,792,458 मी/से) एक सार्वभौमिक स्थिरांक है। |
8 | Constants are used in physics, chemistry, and computing. | स्थिरांक का उपयोग भौतिकी, रसायन विज्ञान और कंप्यूटर विज्ञान में किया जाता है। |
9 | In C++, #define is used to declare a constant. | C++ में, #define का उपयोग एक स्थिरांक घोषित करने के लिए किया जाता है। |
10 | Declaring values as constants avoids accidental modifications. | मूल्यों को स्थिरांक के रूप में घोषित करने से अनजाने में हुए परिवर्तनों से बचा जा सकता है। |
Short Story Using ‘Constant’
Neha was writing a program to calculate the area of a circle. She used a constant PI = 3.14
so that its value would remain fixed. Later, she realized how using constants prevents accidental modifications and makes the program more reliable.