Switch case statements

কেছ বিবৃতি সলনি কৰক

If we need to do a selection of statement execution in a program based on some integral value, we can use switch () construct of C. The value of the expression inside the switch () construct directs to different case and accordingly a block of statements are executed for one case.

যদি আমি কোনো অবিচ্ছেদ্য মূল্যৰ ওপৰত আধাৰিত কৰি এটা প্ৰ’গ্ৰামত বিবৃতি কাৰ্যকৰী কৰণৰ বাছনি কৰাৰ প্ৰয়োজন হয়, আমি চি-ৰ চুইচ () নিৰ্মাণ ব্যৱহাৰ কৰিব পাৰোঁ। চুইচৰ ভিতৰত থকা অভিব্যক্তিৰ মূল্য () নিৰ্মাণে বিভিন্ন কেছলৈ নিৰ্দেশনা দিয়ে আৰু সেই অনুসৰি এটা গোচৰৰ বাবে বিবৃতিৰ এটা খণ্ড কাৰ্যকৰী কৰা হয়।