PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] const char *
Date: Tuesday, 14 Apr 2020, 07:36:40


    > Message Posted By: Unknown
    >
    > Why would you use const char * instead of char* like in the Aspnes notes?

const char * specifies a variable that points to a
string that cannot be modified even though the value
of the variable can.

Used for an argument, it indicates that the function
does not change the value of the string.  Used for a
local variable it enforces this restriction.
=====

    > How does that impact how the hash functions we are writing?

See above.

--Stan-
PREV INDEX NEXT