Exforsys

Online Training

Data types

This is a discussion on Data types within the C and C++ forums, part of the Programming Talk category; What are the data types that can be used in switch statement in C programming language? Can a user use ...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-09-2007, 04:36 PM
Senior Member
 
Join Date: Apr 2006
Posts: 162
sammy is on a distinguished road
Data types

What are the data types that can be used in switch statement in C programming language? Can a user use all data types or is there any restriction on the usage of data types in switch statement?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-14-2007, 05:29 PM
Senior Member
 
Join Date: Apr 2006
Posts: 145
Rahulbatra is on a distinguished road
No. All data types cannot be used with switch statement in C programming language. There is restriction for the usage of float data type. Only integers and char data type can be sued with switch statement in C programming language.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
difference between Data Warehouse and Online Analytical Processing techguru Data Warehousing 1 04-10-2006 12:25 PM
hierarchail & network kisshug Oracle Tutorials 2 05-01-2005 05:17 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit Tech FAQ 0 06-01-2004 07:00 AM
[FAQ] FileMaker Pro - database for Macintosh and Windows Martin Trautmann Tech FAQ 0 04-17-2004 08:26 AM
Apple II Csa2 FAQs: Telecom Hardware & Transfers, Part 20/25 rubywand@swbell.net Tech FAQ 0 04-04-2004 08:29 AM


All times are GMT -4. The time now is 07:30 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.