VR Indian Wanderers Youtube Facebook RSS Feed
Learn with Vikas Suhag
Program to implement condition using "nested switch" in C Language
Nov 30, 2021   Vikas Suhag

"nested switch" in C Language

#include <stdio.h>  
void main () {  
   int i = 10;  
   int j = 20;  
   switch(i) {  
      case 10:   
         printf("the value of i evaluated in outer switch: %d\n",i);  
      case 20:  
         switch(j) {  
            case 20:  
               printf("The value of j evaluated in nested switch: %d\n",j);  
         }  
   }          printf("Exact value of i is : %d\n", i );  
   printf("Exact value of j is : %d\n", j );  
   
}  

 

 


Leave a Comment

* Email will not be published.
All comments are only visible after approval.
Most Viewed articles
Travel Blog - VR Indian Wanderers
VR Indian Wanderers
Govt. Jobs Portal
Govt. Jobs Portal
Free Chart Maker
Make free animated Charts from .CSV
Search
Youtube Channel
Podcast
Subscribe to Email Updates
Connect With Us
VR Indian Wanderers Youtube Facebook RSS Feed
© 2024 Learn with Vikas Suhag. All Rights Reserved.