Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7011443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:07:40+00:00 2026-05-27T22:07:40+00:00

While I’m reading some C tutorials, I found this line which I do not

  • 0

While I’m reading some C tutorials, I found this line which I do not understand:

C Lacks range-checking

What does that mean?

Another small question: how can I pause code to not terminate quickly after finishing? I think we say System("PAUSE") or some thing like that. How can I make it in C?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:07:41+00:00Added an answer on May 27, 2026 at 10:07 pm

    It means that you can define operations whose logical result is outside of the range of values allowed for the type. e.g.

    unsigned char a = 0xFF;
    unsigned char b = a + 1;
    

    The compiler will very happily allow this, and return a result of 0x00. 0xFF + 1 overflows the one byte storage of a. Notice that 0x00 is just the low-order 8 bits of the correct answer ‘0x100`. This can be repaired with:

    unsigned char a = 0xFF;
    unsigned b = (unsigned)a + 1;
    

    which first makes more room for the value in a by converting it to a larger integer type and saving it to a larger type.

    A similar issue is bounds checking in which the compiler will happily let you write:

    int a[5] = {1, 2, 3, 4, 5};
    i = 1000;
    b = a[i];
    

    (EDITED based on the comments:)
    After executing this code, an exception will likely be thrown, but the compiler doesn’t care at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While reading codes of my group project, I come across many DEFINEs, and some
While working with some jQuery ajax, I've run into this problem with Chrome and
While reading a binary file using DJGPP on DOS this code hangs. This happens
while user edits the datagridview, it does not save changes to Access MDB file
While I use Linux, I have not yet customized my bash shell, which I
While working with some sources written in C++ I found those macro: JNIEXPORT return_type
While the C# spec does include a pre-processor and basic directives (#define, #if, etc),
While experimenting with some stuff on the REPL, I got to a point where
While the .NET 4 framework provides the Assembly.IsDynamic method, that's not the case with
While Adding the data into the collection, which is better practice to use, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.