Valid variable and function names

This is a discussion on Valid variable and function names within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Can I use ascii characters other then the standard letters to variables and functions? Like can I declare a float ...

  1. #1
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913

    Valid variable and function names

    Can I use ascii characters other then the standard letters to variables and functions? Like can I declare a float 3.1416 by the name of the ascii character that looks like PI? What about function names?

  2. #2
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    No, I'm pretty sure variable and function names can only be alphanumeric (including the underscore). Also, they cannot start with a number.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 09:28 AM
  2. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 09:18 PM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  4. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-30-2005, 12:21 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21