Switch Case Sample Program

सी प्रोग्रॅमिंग मधील स्विच केस कंट्रोल स्ट्रक्चर म्हणजे लिंबू-टिंबू कंट्रोल स्ट्रक्चर…frownपण त्यामुळेच ते अडचणीच्या वेळी कामाला येत आणी दुर्लक्षीत केल्यामुळे ऐनवेळी वापरतांना अडचणी निर्माण होतात…पहा आमच्या टिम ने कसं शिकवलय ते… Register Here for Discount Coupon

cenglishcppengcmarathi

Switch Case Control Structure : Introduction

स्विच केस कंट्रोल स्ट्रक्चर म्हणजे दुर्लक्षित असलेलं कंट्रोल स्ट्रक्चर पण डॆटा स्ट्रक्चरचे प्रोग्रॅम्स सोडवतांना या कंट्रोल स्ट्रक्चर शिवाय पान हालत नाही..मेनू ड्रिव्हन प्रोग्रॅमींग करण्यासाठी  डॆनीस रिची या अवलीयान करून दिलेली भन्नाट सुविधा…बघांनां किती सोपं करुन दाखवलय आमच्या टिमनं…करा आवडला तर शेअर तुमच्या मित्र-मैत्रींणींच्या मध्ये…

Switch Case control structure is one of the 4 control structures provided by Dennis Ritchie in C language. The same was used by many other languages in the future because of its simplicity. However as it is ignored, mistakes are made during writing programs.

Access this framework with lot more stuff like C language MCQ, viva and interview preparation, Glossary, Solved Programs of C language etc. please register free for Discount Coupon

cenglishcppengcmarathi

Decision Control Structure Part 2

Chap 2 : Unit 2 : If Control Structure : Part 2

“निर्णय चुकीचा असला तरी चालेल पण निर्णय घेण्याची क्षमता हवी कारण निर्णय बरोबर की चुकीचा हे येणारा काळ ठरवतो” किती सुंदर वाक्य आहे नाही हे…?

सी प्रोग्रॅमिंग लॅंग्वेजमध्ये Decision घेतांना If control structure कसे वापरायचे हेच तर आम्ही या ठिकाणी समजावून सांगीतलय

We will see how to write condition and how the if block needs to be written to get the associated statements be executed if condition becomes true.

When multiple statements are to be associated with if condition, we need to enclose all statements inside pair of curly braces following the if condition

Prima facie structure of if..condition seems to be very easy, but it is very difficult to find the situation while solving programs and that insight a programmer will get only after writing many programs. 

Identifying this situation is major challenge I would say for fresher.

Many times in day to day life we do not explicitly say what would happen or what would you do if certain condition is not satisfied…

For example if you tell your friend in Pune that you both would go to movie if he travels to Pune on weekends. However you need not mention what you would do in your home town if you cancel your plan to go to Pune on weekends. Act of watching movie will take place only when you go to Pune that’s all…

Access this framework with lot more stuff like C language MCQ, viva and interview preparation, Glossary, Solved Programs of C language etc. Register for Discount Coupon

 

cenglishcppengcmarathi

Chap 2 : Unit 1 : Introduction to Decision Control Structure : Part 2

There are basically 4 types of instructions in any C program. I have explained it in deail in the first chapter. Let’s have a review…

  • Type declaration
  • Input and output statements
  • Arithmetic Instructions
  • Control Structures

Here Control Structures are also of 4 types viz.

  • Sequential Control Structures 
  • Decision Control Structure 
  • Loop Control Structure
  • Switch Case Control Structure

In the first chapter all programs were simple and each statement of program was getting executed. So it is called as sequential control structure.  yes

Access this framework with lot more stuff like C language MCQ, viva and interview preparation, Glossary, Solved Programs of C language etc. please register for Discount Coupon

cenglishcppengcmarathi