Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
80 views
in Computer by (55.2k points)
closed by

C++ में सलेक्शन कन्ट्रोल स्ट्रक्चर कैसे लागू किया गया है? वर्णन कीजिए।

1 Answer

+1 vote
by (57.2k points)
selected by
 
Best answer

सलेक्शन स्ट्रक्चर- दो या उससे अधिक संपादन के पथ जिनमें से एक को चुना जाता है अगर शर्त पूरी होती है।

उदाहरण

if स्टेटमेन्ट

if (expression is true)
{
statements;
}

if-else स्टेटमेन्ट

if (expression is true)
{
statements;
}
else
{
statements;
}

switch स्टेटमेन्ट

switch(expression)
{
case 1 : statements;
break;
case 2: statements;
break;
case 3 : statements;
break;
default : statements;
}

Related questions

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...