Geeks Talk

Prepare for your Next Interview




C/C++ Programming : Limitations of switch statement

This is a discussion on C/C++ Programming : Limitations of switch statement within the C and C++ forums, part of the Software Development category; What are the Limitations of switch statement? Switch statement is a powerful statement used to handle many alternatives and provides good presentation for C program. But there are some limitations ...


Go Back   Geeks Talk > Software Development > C and C++

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-04-2006
Moderator
 
Join Date: Oct 2005
Posts: 721
Thanks: 1
Thanked 99 Times in 74 Posts
Lokesh M is on a distinguished roadLokesh M is on a distinguished road
C/C++ Programming : Limitations of switch statement

What are the Limitations of switch statement?

Switch statement is a powerful statement used to handle many alternatives and provides good presentation for C program. But there are some limitations with switch statement which are given below:

Logical operators cannot be used with switch statement. For instance
case k>=20:

is not allowed

Read Full at C Knowledgebase

Last edited by Lokesh M : 07-04-2006 at 08:55 PM.
Reply With Quote
The Following User Says Thank You to Lokesh M For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 07-17-2007
Contributing Member
 
Join Date: Jul 2007
Location: India
Posts: 31
Thanks: 6
Thanked 4 Times in 4 Posts
kamanianil is on a distinguished road
Re: C/C++ Programming : Limitations of switch statement

sitch statemnt can not work with float value also...
have a good day...
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
C Programming - Linked Lists Lokesh M C and C++ 1 03-05-2007 07:02 AM
C Programming - File management in C Lokesh M C and C++ 0 05-31-2006 04:35 PM
C Programming - Dynamic Memory allocation Lokesh M C and C++ 0 05-29-2006 03:35 AM
C Programming - Structures and Unions Lokesh M C and C++ 0 05-26-2006 02:06 AM
C Programming - Pointers Lokesh M C and C++ 0 05-26-2006 02:05 AM


All times are GMT -4. The time now is 01:11 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved