Results 1 to 4 of 4

Thread: What is the purpose of Bound Checking in C?

  1. #1
    Join Date
    Jan 2010
    Posts
    19

    What is the purpose of Bound Checking in C?

    Hello, everyone. I am the student of commerce and I am interested in studying the C programming language. I just started to learn the C language on suggestion of my friend. So I would like to know about the Bound Checking in the C language. I would also like to know about the what is the purpose of the Bound Checking in C language?, how it can work?. Is it related to Array? if somebody know the answer then reply me.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Bound Checking

    Hi, I think it is good hear that commerce students are also getting interested in the C programming language. In programming language like C Bound Checking is any of the method that detects whether a variable is within some bounds or not before the use of the variable. Bound Checking is particularly related to the variable used as an index in an array to make sure that the value of the variable lies between the bound of array or not. I think it sufficient for you to know about the Bound Checking.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Bound Checking in C

    I suggest you to go through the following example that helps you to learn about the Bound Checking. The first check in Bound Checking is known as range checking and the second known as index checking.
    For example:- A value of 32768 is about to be assigned to a 16-bit signed integer variable. Upper bounds of 32768 are −32768 to +32767 or accessing an element of 25 on an array with index range 0 through 9 only.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    Array

    I had glad to hear that you are learning the C programming language. I thought that failing of bounds check mainly results in the generation of some sort of exception signal. Because during every usage it is difficult to perform the bounds checking which is time-consuming. Bounds checking elimination are compiler technologies that eliminate unneeded bounds. C programming language never perform automatic bounds checking in order to increase the speed. Thank You!

Similar Threads

  1. Call Of Juarez: Bound In Blood (PC Game)
    By absolute55 in forum Reviews
    Replies: 1
    Last Post: 08-06-2011, 07:59 AM
  2. increase users inbound and out bound e-mails
    By Faro in forum Windows Software
    Replies: 1
    Last Post: 25-04-2011, 12:24 AM
  3. String out of bound error
    By InterNetWorKed in forum Software Development
    Replies: 3
    Last Post: 28-11-2009, 11:17 AM
  4. Prefix not Bound to a namespace Error with XML parser
    By Nihar Khan in forum Software Development
    Replies: 3
    Last Post: 02-03-2009, 02:25 PM
  5. Call of Juarez: Bound in Blood
    By Gamez in forum Video Games
    Replies: 3
    Last Post: 14-01-2009, 06:30 PM

Tags for this Thread

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
  •  
Page generated in 1,713,257,457.48234 seconds with 17 queries