Back-End Programming Exam  >  Back-End Programming Videos  >  Learn to Program with C++: Beginner to Expert (in Hindi)  >  5. Output Statement - cout in C++ Programming (Hindi)

5. Output Statement - cout in C++ Programming (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

FAQs on 5. Output Statement - cout in C++ Programming (Hindi) Video Lecture - Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

1. क्या होता है "cout" कमांड और इसका उपयोग कैसे किया जाता है?
उत्तर: "cout" कमांड C++ में एक प्रमुख आउटपुट स्ट्रीम है जिसका उपयोग करके हम कन्सोल पर डेटा छाप सकते हैं। यह स्ट्रीम "<<" ऑपरेटर के साथ इस्तेमाल की जाती है जो कि डेटा को प्रिंट करने के लिए उपयोग होता है।
2. कैसे "cout" कमांड का उपयोग करके वेरिएबल की मान को प्रिंट करें?
उत्तर: "cout" कमांड का उपयोग करके हम वेरिएबल की मान को प्रिंट कर सकते हैं। इसके लिए हमें "<<" ऑपरेटर का उपयोग करना होगा। निम्नलिखित उदाहरण में दिखाया गया है: int num = 10; cout << "The value of num is: " << num; इसका आउटपुट होगा: The value of num is: 10
3. "cout" कमांड का उपयोग करके वेरिएबल के अतिरिक्त टेक्स्ट को कैसे प्रिंट करें?
उत्तर: "cout" कमांड का उपयोग करके हम वेरिएबल के अतिरिक्त टेक्स्ट को प्रिंट कर सकते हैं। हमें टेक्स्ट को दोहरे उद्धरण (double quotation marks) में रखना होगा और "<<" ऑपरेटर का उपयोग करना होगा। निम्नलिखित उदाहरण में दिखाया गया है: cout << "Hello, World!"; इसका आउटपुट होगा: Hello, World!
4. क्या हम "cout" कमांड का उपयोग करके एक से अधिक वेरिएबल्स को प्रिंट कर सकते हैं?
उत्तर: हाँ, हम "cout" कमांड का उपयोग करके एक से अधिक वेरिएबल्स को प्रिंट कर सकते हैं। हमें उद्धरण (quotation marks) के बीच दोहरे "<<" ऑपरेटर का उपयोग करना होगा। निम्नलिखित उदाहरण में दिखाया गया है: int num1 = 5; int num2 = 10; cout << "The values are: " << num1 << " and " << num2; इसका आउटपुट होगा: The values are: 5 and 10
5. क्या हम "cout" कमांड का उपयोग करके वेरिएबल के साथ वाक्यांश भी प्रिंट कर सकते हैं?
उत्तर: हाँ, हम "cout" कमांड का उपयोग करके वेरिएबल के साथ वाक्यांश भी प्रिंट कर सकते हैं। हमें उद्धरण (quotation marks) के बीच वाक्यांश रखना होगा और "<<" ऑपरेटर का उपयोग करना होगा। निम्नलिखित उदाहरण में दिखाया गया है: int age = 25; cout << "I am " << age << " years old."; इसका आउटपुट होगा: I am 25 years old.

Up next

Explore Courses for Back-End Programming exam
Related Searches

Objective type Questions

,

Important questions

,

Extra Questions

,

study material

,

Summary

,

5. Output Statement - cout in C++ Programming (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

practice quizzes

,

Sample Paper

,

ppt

,

past year papers

,

5. Output Statement - cout in C++ Programming (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

pdf

,

Exam

,

mock tests for examination

,

Free

,

Viva Questions

,

MCQs

,

Previous Year Questions with Solutions

,

Semester Notes

,

shortcuts and tricks

,

video lectures

,

5. Output Statement - cout in C++ Programming (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

;