Re: [RFClue] Constant declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 11 October 2005 22:28, Jim Bauer wrote:

> It is the string that is constant, not the pointer.
>

So, when you declare it a pointer and a string constant are created, and the 
pointer is initialised to the address of the string constant.

But later you can assign a new value to the pointer so that it points at 
someother string. But the original string constant is still sitting there in 
memory but not being referenced.

Is that it?

Thanks,
Felix

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux