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 8469765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:19:11+00:00 2026-06-10T16:19:11+00:00

I came across these two sections in C11 standard referring to the restrict qualifier:

  • 0

I came across these two sections in C11 standard referring to the restrict qualifier:

1#

6.7.3-8

An object that is accessed through a restrict-qualified pointer has a
special association with that pointer. This association, defined in
6.7.3.1 below, requires that all accesses to that object use, directly or indirectly, the value of that particular pointer.135) The intended
use of the restrict qualifier (like the register storage class) is to
promote optimization, and deleting all instances of the qualifier
from all preprocessing translation units composing a conforming
program does not change its meaning (i.e., observable behavior)
.

Can you explain me the meaning of the cursive fragment? In my interpretation, since it doesn’t change its meaning, it looks like that the using of restrict is just pointless…

2#

6.7.3.1-6

A translator is free to ignore any or all aliasing implications of
uses of restrict.

What might these aliasing implications be? Can you show me some examples?

  • 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-06-10T16:19:12+00:00Added an answer on June 10, 2026 at 4:19 pm

    The cursive statement in the first quote basically said:

    • You may define away the restrict keyword by for example putting a #define restrict line into your code without changing any meaning of your c-code. You code may become a bit slower due to missed optimization, but you will in all cases get the same, deterministic results as if you would have used the restrict keyword.

    Second paragraph means that the compiler is free to ignore the restrict keyword. Easy as that.

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

Sidebar

Related Questions

I came across these two methods to concatenate strings: Common part: char* first= First;
I am a student and I came across these two subjects Discrete Maths and
When I was studying the overflow property's values, I came across these two values:
I came across an interesting question today where I have two methods that, at
I came across these two somewhat similar things. In one of my applications, there
I came across a code where the session object is obtained in two different
I came across this code for making .dat files in c++. These two lines
While researching the use of Table Hints , I came across these two questions:
I came across these two services separately running in Services.msc - SQL Server (SQLEXPRESS)
I am reading osdev wiki. I came across these two lines of code. nasm

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.