Back-End Programming Exam  >  Back-End Programming Videos  >  Learn to Program with C++: Beginner to Expert (in Hindi)  >  177. Example of setf showpoint function in C++ (Hindi)

177. Example of setf showpoint function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

FAQs on 177. Example of setf showpoint function in C++ (Hindi) Video Lecture - Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

1. सेटएफ शोपॉइंट फंक्शन का सी में उदाहरण क्या है?
Ans. सेटएफ शोपॉइंट फंक्शन सी में एक आपरेटर है जिसे उपयोग करके हम संख्याओं को दशमलव पॉइंट के साथ प्रिंट कर सकते हैं। इसका उदाहरण निम्नलिखित है: ``` #include <iostream> #include <iomanip> using namespace std; int main() { double num = 3.14159; cout << setprecision(2) << num << endl; cout << setprecision(4) << num << endl; cout << setprecision(6) << num << endl; return 0; } ``` उपरोक्त कोड का आउटपुट निम्नलिखित होगा: ``` 3.1 3.1416 3.14159 ```
2. सेटएफ शोपॉइंट फंक्शन क्या करता है?
Ans. सेटएफ शोपॉइंट फंक्शन सी में एक आपरेटर है जिसे उपयोग करके हम संख्याओं को दशमलव पॉइंट के साथ प्रिंट कर सकते हैं। यह फंक्शन स्वाभाविक रूप से संख्याओं को बिना दशमलव पॉइंट के प्रिंट करने वाले डिफ़ॉल्ट नियमित प्रिंटर प्रारूप को ओवरराइड करता है।
3. सेटएफ शोपॉइंट फंक्शन का उपयोग किन-किन स्थितियों में किया जा सकता है?
Ans. सेटएफ शोपॉइंट फंक्शन का उपयोग निम्नलिखित स्थितियों में किया जा सकता है: - संख्याओं को दशमलव पॉइंट के साथ प्रिंट करने के लिए - संख्या के दृश्यमान अंश को नियंत्रित करने के लिए - आउटपुट के प्रारूप को बदलने के लिए
4. सेटएफ शोपॉइंट फंक्शन कैसे काम करता है?
Ans. सेटएफ शोपॉइंट फंक्शन कार्यक्रम के आउटपुट दृश्यमान अंश को नियंत्रित करने के लिए उपयोग किया जाता है। इसे आप उदाहरण के रूप में इस्तेमाल कर सकते हैं: ``` #include <iostream> #include <iomanip> using namespace std; int main() { double num = 3.14159; cout << setprecision(2) << num << endl; cout << setprecision(4) << num << endl; cout << setprecision(6) << num << endl; return 0; } ``` उपरोक्त कोड का आउटपुट निम्नलिखित होगा: ``` 3.1 3.1416 3.14159 ```
5. सेटएफ शोपॉइंट फंक्शन का उपयोग करने के फायदे क्या हैं?
Ans. सेटएफ शोपॉइंट फंक्शन के उपयोग से हम निम्नलिखित लाभ प्राप्त कर सकते हैं: - संख्याओं को दशमलव पॉइंट के साथ प्रिंट करने की सुविधा - आउटपुट के प्रारूप को नियंत्रित करने की सुविधा - आउटपुट के दृश्यमान अंश को नियंत्रित करने की सुविधा
Related Searches

ppt

,

shortcuts and tricks

,

Objective type Questions

,

177. Example of setf showpoint function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

Free

,

past year papers

,

practice quizzes

,

pdf

,

Sample Paper

,

Exam

,

177. Example of setf showpoint function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

177. Example of setf showpoint function in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

Viva Questions

,

Extra Questions

,

video lectures

,

Summary

,

study material

,

mock tests for examination

,

Important questions

,

Previous Year Questions with Solutions

,

MCQs

,

Semester Notes

;