Thread: maximum range for declaring a array of register type

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    13

    maximum range for declaring a array of register type

    hi

    what is the maximum length for an array that is declared to be of type register.

    if i have a declaration like this in my code
    ex: register arr[100];

    will this declaration cause an error at the time of compilation. or will the compiler compile the program.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Well I would imagine it would take about 5 seconds to try it, and then you would have the answer...
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. warning: array subscript has type `char'
    By pc_doctor in forum C Programming
    Replies: 5
    Last Post: 12-08-2008, 03:03 PM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  4. Question on l-values.
    By Hulag in forum C++ Programming
    Replies: 6
    Last Post: 10-13-2005, 04:33 PM
  5. Checking maximum values for dynamic array...
    By AssistMe in forum C Programming
    Replies: 1
    Last Post: 03-21-2005, 12:39 AM