Thread: Can we modify the const qualifier with volatile

  1. #1
    Registered User
    Join Date
    May 2017
    Posts
    128

    Can we modify the const qualifier with volatile

    constant qualifier indicate that value of variable will not change while volatile variable indicate that value of variable may be change

    Can we modify the const qualifier with volatile?

  2. #2
    Registered User
    Join Date
    Aug 2019
    Location
    inside a singularity
    Posts
    309
    Yes. c - Difference between const & const volatile - Stack Overflow is the first result when you hit your question up on google search.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook, The Wizardry Compiled

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. About volatile type qualifier
    By Mr.Lnx in forum C Programming
    Replies: 4
    Last Post: 06-27-2014, 03:39 AM
  2. volatile Qualifier on Function
    By User Name: in forum C Programming
    Replies: 13
    Last Post: 06-05-2013, 11:52 AM
  3. Const qualifier
    By karthik537 in forum C Programming
    Replies: 3
    Last Post: 02-17-2011, 12:24 AM
  4. ROM Qualifier vs Const?
    By Syndacate in forum C Programming
    Replies: 20
    Last Post: 01-20-2011, 01:42 PM
  5. Const qualifier problem
    By Lexidata in forum C++ Programming
    Replies: 5
    Last Post: 10-02-2010, 03:04 PM

Tags for this Thread