21 switch #include < stdio.h >main(){float a=1;switch(a){case 1: printf("%f",a); break;case 1.0: printf("%f",a); break;default: printf("%f",a);}return 0;}OutputCompilation Error: Switch Selection expression must be integral type. Constant expression requiredLogic:Switch Selection expression must be integral type: we can give only integer or characters variable to switch case.Constant expression required:we can use only integer constants or characters in case. Share this Share on FacebookTweet on TwitterPlus on Google+ Related Posts482156