DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Posts
    2

    Question Question on data type

    In the statement that follows, x can NOT be what data type?

    switch (x) {statements}

    we have a choice from the following: int, char, long, byte

    Please help me, my instructor gave us this for extra credit, and I really need help. Any help would be greatly appreciated.

    Thanks,
    Jennifer Taylor

    email: JTAYLOR5074@email.vccs.edu

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    The switch measure must be an int or char or int equivalent (enum).

    Code up a test and put a variable of the other data types into it ...

Similar Threads

  1. data type help
    By holyknight in forum VB Classic
    Replies: 6
    Last Post: 02-28-2006, 07:42 AM
  2. Data type mismatch in criteria
    By S in forum VB Classic
    Replies: 3
    Last Post: 01-10-2002, 06:33 PM
  3. Replies: 1
    Last Post: 01-22-2001, 01:57 PM
  4. TEXT Data Type in SQL Server 7
    By Craig Pearson in forum Database
    Replies: 2
    Last Post: 12-14-2000, 09:40 AM
  5. Replies: 0
    Last Post: 03-25-2000, 04:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links