maximum range for declaring a array of register type

This is a discussion on maximum range for declaring a array of register type within the C Programming forums, part of the General Programming Boards category; hi what is the maximum length for an array that is declared to be of type register. if i have ...

  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
    32,851
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 06: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, 05: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

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