Thread: Const char

  1. #1
    Banned
    Join Date
    Apr 2015
    Posts
    596

    Const char

    Hi, I'm just wondering what's the major differences between writing
    Code:
     const char
    and
    Code:
    char
    .

    can you please explain to me what the differences are? if you can by a specific example would be nice and appreciated.

  2. #2
    Registered User Ktulu's Avatar
    Join Date
    Oct 2006
    Posts
    107
    const is short for constant. When you declare a variable with the const keyword you're basically telling your compiler that the initial value of this variable shouldn't change.
    This parameter is reserved

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 04-20-2011, 01:19 PM
  2. Replies: 3
    Last Post: 11-15-2009, 04:57 AM
  3. Difference between const char * and char const *
    By explorecpp in forum C Programming
    Replies: 4
    Last Post: 08-09-2008, 04:48 AM
  4. Replies: 7
    Last Post: 04-28-2008, 09:20 AM
  5. Assigning Const Char*s, Char*s, and Char[]s to wach other
    By Inquirer in forum Linux Programming
    Replies: 1
    Last Post: 04-29-2003, 10:52 PM