---
title: "Meaning & Key Takeaway of: Some compilers allow a check during…"
description: "\"Some compilers allow a check during execution that subscripts do not exceed array dimensions. This is a help, but not sufficient. First, many programme..."
image: "https://sms4smile.com/quotes/i/d53/brian-kernighan-27197_answers_some-compilers-allow-a-check-during-exec_2909735.jpg"
---

#  Some compilers allow a check during execution that…

![“Some compilers allow a check during execution that subscripts do not exceed array dimensions. This is a help, but not sufficient. First, many programmers do not use such compilers because They're not efficient. (Presumably, this means that it is vital to get the wrong answers quickly.)” quote by Brian Kernighan](https://sms4smile.com/quotes/i/d53/brian-kernighan-27197_answers_some-compilers-allow-a-check-during-exec_2909735.jpg)   [Download](https://sms4smile.com/quotes/i/d53/brian-kernighan-27197_answers_some-compilers-allow-a-check-during-exec_2909735.jpg) [Open image](https://sms4smile.com/quotes/i/d53/brian-kernighan-27197_answers_some-compilers-allow-a-check-during-exec_2909735.jpg)

> “Some compilers allow a check during execution that subscripts do not exceed array dimensions. This is a help, but not sufficient. First, many programmers do not use such compilers because They're not efficient. (Presumably, this means that it is vital to get the wrong answers quickly.)”

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

Runtime checks for array bounds help catch errors, but they are inefficient and often unused, so they’re not a complete solution.

**In simple terms:** Bounds checks catch errors but are slow and rarely used.

Key Takeaway

Use static analysis and testing alongside bounds checks.

Themes

programming efficiency error handling software quality

Mood

analytical practical

Type

technical instructional

When to use this quote

- software development
- code review
- educational curricula

Key Concepts

Computer science software engineering performance optimization

Questions to Reflect On

- How can you balance safety and performance?
- What alternatives exist to runtime bounds checks?

A Different Perspective

Reliance on checks can give false security if not combined with other practices.

★ ★ ★ ★ ★   No ratings yet

[Computer](https://sms4smile.com/quotes/about/computer/) [Dimensions](https://sms4smile.com/quotes/about/dimensions/) [Execution](https://sms4smile.com/quotes/about/execution/) [Programmers](https://sms4smile.com/quotes/about/programmers/) [Technology](https://sms4smile.com/quotes/about/technology/) [Wrong answers](https://sms4smile.com/quotes/about/wrong-answers/)

## Related quotes

> [The uncreative mind can spot the wrong answers, but it takes a very creative mind to spot the wrong questions" The question has never…](https://sms4smile.com/quotes/jacque-fresco/the-uncreative-mind-can-spot-the-wrong-answers-but-it-takes-a-very/)

[Jacque Fresco](https://sms4smile.com/quotes/author/jacque-fresco/)

> [“Complex problems have simple, easy to understand, wrong answers.”](https://sms4smile.com/quotes/anonymous/complex-problems-have-simple-easy-to-understand-wrong-answers/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [Teachers say to me, 'The internet is full of rubbish, wrong answers.' But you would be surprised how just long it takes to find…](https://sms4smile.com/quotes/sugata-mitra/teachers-say-to-me-the-internet-is-full-of-rubbish-wrong-answers-but/)

[Sugata Mitra](https://sms4smile.com/quotes/author/sugata-mitra/)

> [If you dont ask yourself the right questions, youll always get the wrong answers.](https://sms4smile.com/quotes/suman-rai/if-you-dont-ask-yourself-the-right-questions-youll-always-get-the/)

[Suman Rai](https://sms4smile.com/quotes/author/suman-rai/)

> [Before the Christian Church goes into eclipse anywhere there must first be a corrupting of her simple basic theology. She simply gets a wrong…](https://sms4smile.com/quotes/aiden-wilson-tozer/before-the-christian-church-goes-into-eclipse-anywhere-there-must/)

[Aiden Wilson Tozer](https://sms4smile.com/quotes/author/aiden-wilson-tozer/)

> [In studying mathematics or simply using a mathematical principle, if we get the wrong answer in sort of algebraic equation, we do not suddenly…](https://sms4smile.com/quotes/eric-butterworth/in-studying-mathematics-or-simply-using-a-mathematical-principle-if/)

[Eric Butterworth](https://sms4smile.com/quotes/author/eric-butterworth/)

> [Why don't I talk about Big Data? Because I am focused on intelligent answers and not speeds and feeds. It doesn't matter if it…](https://sms4smile.com/quotes/michael-j-saylor/why-don-t-i-talk-about-big-data-because-i-am-focused-on-intelligent/)

[Michael J. Saylor](https://sms4smile.com/quotes/author/michael-j-saylor/)

> [Its easy to research on the Internet, but its also easy to get the wrong answers. Not all that you read on Google is…](https://sms4smile.com/quotes/jock-zonfrillo/its-easy-to-research-on-the-internet-but-its-also-easy-to-get-the/)

[Jock Zonfrillo](https://sms4smile.com/quotes/author/jock-zonfrillo/)

> [The conventional asset-allocation method is like sheet music. It is prescribed, it has right answers and wrong answers and it sounds about the same…](https://sms4smile.com/quotes/john-kao/the-conventional-asset-allocation-method-is-like-sheet-music-it-is/)

[John Kao](https://sms4smile.com/quotes/author/john-kao/)

> [The most serious mistakes are not being made as a result of wrong answers. The true dangerous thing is asking the wrong question.](https://sms4smile.com/quotes/peter-drucker/the-most-serious-mistakes-are-not-being-made-as-a-result-of-wrong/)

[Peter Drucker](https://sms4smile.com/quotes/author/peter-drucker/)

> [No one knows if theyll be happy by getting married to someone. Dont looks for answers. Right and wrong answers coexist in every decision.…](https://sms4smile.com/quotes/anonymous/no-one-knows-if-theyll-be-happy-by-getting-married-to-someone-dont/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [Someday a computer will give a wrong answer to spare someone's feelings, and man will have invented artificial intelligence.](https://sms4smile.com/quotes/robert-breault/someday-a-computer-will-give-a-wrong-answer-to-spare-someone-s/)

[Robert Breault](https://sms4smile.com/quotes/author/robert-breault/)

> [Most Americans do not know what their strengths are. When you ask them, they look at you with a blank stare, or they respond…](https://sms4smile.com/quotes/peter-drucker/most-americans-do-not-know-what-their-strengths-are-when-you-ask-them/)

[Peter Drucker](https://sms4smile.com/quotes/author/peter-drucker/)

> [My real friends never hearin from me, fake friends write the wrong answers on the mirror for me](https://sms4smile.com/quotes/drake/my-real-friends-never-hearin-from-me-fake-friends-write-the-wrong/)

[Drake](https://sms4smile.com/quotes/author/drake/)

> [Environmentalists get in the way. They often ask the right questions, but they're chasing the wrong answers - often hypothetical or uneconomic solutions.](https://sms4smile.com/quotes/vinod-khosla/environmentalists-get-in-the-way-they-often-ask-the-right-questions/)

[Vinod Khosla](https://sms4smile.com/quotes/author/vinod-khosla/)

## More by Brian Kernighan

> [Get the weirdnesses into the data where you can manipulate them easily, and the regularity into the code because regular code is a lot…](https://sms4smile.com/quotes/brian-kernighan/get-the-weirdnesses-into-the-data-where-you-can-manipulate-them/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Trying to outsmart a compiler defeats much of the purpose of using one.](https://sms4smile.com/quotes/brian-kernighan/trying-to-outsmart-a-compiler-defeats-much-of-the-purpose-of-using-one/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [An effective way to test code is to exercise it at its natural boundaries](https://sms4smile.com/quotes/brian-kernighan/an-effective-way-to-test-code-is-to-exercise-it-at-its-natural/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [As we said in the preface to the first edition, C "wears well as one's experience with it grows." With a decade more experience,…](https://sms4smile.com/quotes/brian-kernighan/as-we-said-in-the-preface-to-the-first-edition-c-wears-well-as-one-s/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Trivia rarely affect efficiency. Are all the machinations worth it, when their primary effect is to make the code less readable?](https://sms4smile.com/quotes/brian-kernighan/trivia-rarely-affect-efficiency-are-all-the-machinations-worth-it/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [If you had done something twice, you are likely to do it again.](https://sms4smile.com/quotes/brian-kernighan/if-you-had-done-something-twice-you-are-likely-to-do-it-again/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [C is a razor-sharp tool, with which one can create an elegant and efficient program or a bloody mess.](https://sms4smile.com/quotes/brian-kernighan/c-is-a-razor-sharp-tool-with-which-one-can-create-an-elegant-and/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Believe the terrain, not the map](https://sms4smile.com/quotes/brian-kernighan/believe-the-terrain-not-the-map/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Mechanical rules are never a substitute for clarity of thought.](https://sms4smile.com/quotes/brian-kernighan/mechanical-rules-are-never-a-substitute-for-clarity-of-thought/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Don't document bad code - rewrite it.](https://sms4smile.com/quotes/brian-kernighan/don-t-document-bad-code-rewrite-it/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you…](https://sms4smile.com/quotes/brian-kernighan/debugging-is-twice-as-hard-as-writing-the-code-in-the-first-place/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [“Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can…](https://sms4smile.com/quotes/brian-kernighan/everyone-knows-that-debugging-is-twice-as-hard-as-writing-a-program/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [ Another effective \[debugging\] technique is to explain your code to someone else. This will often cause you to explain the bug to yourself. Sometimes… ](https://sms4smile.com/quotes/brian-kernighan/another-effective-debugging-technique-is-to-explain-your-code-to/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [... it is a fundamental principle of testing that you must know in advance the answer each test case is supposed to produce. If…](https://sms4smile.com/quotes/brian-kernighan/it-is-a-fundamental-principle-of-testing-that-you-must-know-in/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Do what you think is interesting, do something that you think is fun and worthwhile, because otherwise you won't do it well anyway.](https://sms4smile.com/quotes/brian-kernighan/do-what-you-think-is-interesting-do-something-that-you-think-is-fun/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

[Explore all 21 Brian Kernighan quotes ](https://sms4smile.com/quotes/author/brian-kernighan/)

## More Answers quotes

> [The one thing that I keep learning over and over again is that I don't know nothing. I mean, that's my life lesson.](https://sms4smile.com/quotes/dwayne-johnson/the-one-thing-that-i-keep-learning-over-and-over-again-is-that-i-don/)

[Dwayne Johnson](https://sms4smile.com/quotes/author/dwayne-johnson/)

> [Sometimes a question can hurt more than an answer.](https://sms4smile.com/quotes/sarah-dessen/sometimes-a-question-can-hurt-more-than-an-answer/)

[Sarah Dessen](https://sms4smile.com/quotes/author/sarah-dessen/)

> [You feed yourself. Make sure you have all the information, whether it's aesthetic, scientific, mathematical, I don't care what it is. Then you walk…](https://sms4smile.com/quotes/ray-bradbury/you-feed-yourself-make-sure-you-have-all-the-information-whether-it-s/)

[Ray Bradbury](https://sms4smile.com/quotes/author/ray-bradbury/)

> [I have long felt that the way to keep children out of trouble is to keep them interested in things. Lecturing to children is…](https://sms4smile.com/quotes/walt-disney/i-have-long-felt-that-the-way-to-keep-children-out-of-trouble-is-to/)

[Walt Disney](https://sms4smile.com/quotes/author/walt-disney/)

> [Let me tell you that atheism has never painted a masterpiece. Atheism has never dispelled fear. Atheism has never healed a disease; faith in…](https://sms4smile.com/quotes/john-hagee/let-me-tell-you-that-atheism-has-never-painted-a-masterpiece-atheism/)

[John Hagee](https://sms4smile.com/quotes/author/john-hagee/)

> [“As long as you keep searching,the answers will come.”](https://sms4smile.com/quotes/mitch-kynock/as-long-as-you-keep-searching-the-answers-will-come/)

[Mitch Kynock](https://sms4smile.com/quotes/author/mitch-kynock/)

> [The answer to deep anxiety is the deep adoration of God.](https://sms4smile.com/quotes/ann-voskamp/the-answer-to-deep-anxiety-is-the-deep-adoration-of-god/)

[Ann Voskamp](https://sms4smile.com/quotes/author/ann-voskamp/)

> [A dialogue is very important. It is a form of communication in which question and answer continue till a question is left without an…](https://sms4smile.com/quotes/jiddu-krishnamurti/a-dialogue-is-very-important-it-is-a-form-of-communication-in-which/)

[Jiddu Krishnamurti](https://sms4smile.com/quotes/author/jiddu-krishnamurti/)

> [There is a comfort in rituals, and rituals provide a framework for stability when you are trying to find answers.](https://sms4smile.com/quotes/deborah-norville/there-is-a-comfort-in-rituals-and-rituals-provide-a-framework-for/)

[Deborah Norville](https://sms4smile.com/quotes/author/deborah-norville/)

> [A religious person answers to God, not to the elected or non-elected official.](https://sms4smile.com/quotes/elie-wiesel/a-religious-person-answers-to-god-not-to-the-elected-or-non-elected/)

[Elie Wiesel](https://sms4smile.com/quotes/author/elie-wiesel/)

> [Let us remember that every worldview-not just Christianity's-must give an explanation or an answer for evil and suffering...this is not just a problem distinctive…](https://sms4smile.com/quotes/ravi-zacharias/let-us-remember-that-every-worldview-not-just-christianity-s-must/)

[Ravi Zacharias](https://sms4smile.com/quotes/author/ravi-zacharias/)

> [Instead of asking a girl how she feels, try looking through her recently listened to songs. The lyrics are the answer to all your…](https://sms4smile.com/quotes/anonymous/instead-of-asking-a-girl-how-she-feels-try-looking-through-her/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [For someone to ask 'Who did you play for' and to be able to answer a single name 'Liverpool' that would be brilliant...I don't…](https://sms4smile.com/quotes/jamie-carragher/for-someone-to-ask-who-did-you-play-for-and-to-be-able-to-answer-a/)

[Jamie Carragher](https://sms4smile.com/quotes/author/jamie-carragher/)

> [When the first Superman movie came out I was frequently asked "What is a hero?" ...My answer was that a hero is someone who…](https://sms4smile.com/quotes/christopher-reeve/when-the-first-superman-movie-came-out-i-was-frequently-asked-what-is/)

[Christopher Reeve](https://sms4smile.com/quotes/author/christopher-reeve/)

> [Enjoying life isn't about finding the answers, but living the questions.](https://sms4smile.com/quotes/sue-margolis/enjoying-life-isn-t-about-finding-the-answers-but-living-the-questions/)

[Sue Margolis](https://sms4smile.com/quotes/author/sue-margolis/)

Browse all 7,843 Answers quotes

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "Some compilers allow a check during execution that subscripts do not exceed array dimensions. This is a help, but not sufficient. First, many programmers do not use such compilers because They're not efficient. (Presumably, this means that it is vital to get the wrong answers quickly.)",
            "creator": {
                "@type": "Person",
                "name": "Brian Kernighan"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/brian-kernighan/some-compilers-allow-a-check-during-execution-that-subscripts-do-not/",
            "about": {
                "@type": "Thing",
                "name": "Answers"
            },
            "@id": "https://sms4smile.com/quotes/brian-kernighan/some-compilers-allow-a-check-during-execution-that-subscripts-do-not/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/d53/brian-kernighan-27197_answers_some-compilers-allow-a-check-during-exec_2909735.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/d53/brian-kernighan-27197_answers_some-compilers-allow-a-check-during-exec_2909735.jpg",
                "url": "https://sms4smile.com/quotes/i/d53/brian-kernighan-27197_answers_some-compilers-allow-a-check-during-exec_2909735.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“Some compilers allow a check during execution that subscripts do not exceed array dimensions. This is a…” — Brian Kernighan",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Brian Kernighan",
                    "item": "https://sms4smile.com/quotes/author/brian-kernighan/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "Some compilers allow a check during...",
                    "item": "https://sms4smile.com/quotes/brian-kernighan/some-compilers-allow-a-check-during-execution-that-subscripts-do-not/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/brian-kernighan/some-compilers-allow-a-check-during-execution-that-subscripts-do-not/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
