16. Escape Sequence in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

186 videos

FAQs on 16. Escape Sequence in C++ (Hindi) Video Lecture - Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

1. Escape Sequence क्या होता है?
Ans. Escape Sequence C programming में एक विशेष character sequence होता है जो विभिन्न control characters और special characters को represent करने के लिए इस्तेमाल किया जाता है। Escape sequence का प्रयोग करके हम नई लाइन (newline), टैब (tab), बैकस्लैश (backslash), या बिना space के quote जैसे विशेष character को प्रिंट कर सकते हैं।
2. Escape sequence को कैसे इस्तेमाल किया जाता है?
Ans. Escape sequence को एक backslash (\) के साथ लिखा जाता है, जिसके बाद एक character या digit का combination आता है। इसका उदाहरण निम्नलिखित है: - \n : नई लाइन करने के लिए - \t : टैब करने के लिए - \\ : बैकस्लैश के लिए - \' : एकल quote के लिए - \" : डबल quote के लिए
3. Escape sequence क्यों जरूरी है?
Ans. Escape sequence का उपयोग सी प्रोग्रामिंग में विभिन्न control characters और special characters को प्रिंट करने के लिए किया जाता है। यहाँ कुछ कारण दिए गए हैं: - नई लाइन का उपयोग करके पाठ को विभाजित करने के लिए। - टेबलरूप में डेटा को प्रिंट करने के लिए टैब का उपयोग करें। - विशेष characters को प्रिंट करने के लिए बैकस्लैश का उपयोग करें।
4. Escape sequence क्या स्ट्रिंग में इस्तेमाल हो सकता है?
Ans. हां, escape sequence स्ट्रिंग में इस्तेमाल हो सकता है। जब हम किसी स्ट्रिंग में एकल या डबल quote प्रिंट करना चाहते हैं, तो हम इस्तेमाल कर सकते हैं \" या \'। उदाहरण के लिए, "Hello, \"world\"!" यह स्ट्रिंग प्रिंट होगी "Hello, "world"!".
5. Escape sequence के रूप में यहाँ और कौन से characters मौजूद हैं?
Ans. इसमें कुछ अन्य escape sequence भी मौजूद हैं जो अन्य विशेष characters को प्रिंट करने के लिए इस्तेमाल हो सकते हैं: - \a : एक ऑडियो अलर्ट (bell) प्रिंट करने के लिए - \b : एक बैकस्पेस (backspace) प्रिंट करने के लिए - \r : करेटर वापस लाने के लिए - \f : एक फॉर्म फ़ीड प्रिंट करने के लिए - \v : एक वर्टिकल टैब प्रिंट करने के लिए
186 videos
Explore Courses for Back-End Programming exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

past year papers

,

practice quizzes

,

Previous Year Questions with Solutions

,

Extra Questions

,

MCQs

,

Free

,

Important questions

,

16. Escape Sequence in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

16. Escape Sequence in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

,

mock tests for examination

,

Viva Questions

,

Objective type Questions

,

Summary

,

video lectures

,

ppt

,

study material

,

Semester Notes

,

Exam

,

Sample Paper

,

shortcuts and tricks

,

pdf

,

16. Escape Sequence in C++ (Hindi) Video Lecture | Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming

;