what is character pointer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is character pointer

think

1st Feb 2018, 2:09 PM
Harsha gowda R
Harsha gowda R - avatar
2 Answers
0
character pointer returns address of any variable in terms of character
1st Feb 2018, 2:17 PM
‎ ‏‏‎Anonymous Guy
0
Each byte of RAM has a physical address (from 00000000 to 11111111 on 8-bit systems, although a Hexadecimal representation is usually used instead). A pointer is a variable that "points" to another variable, by holding the address of that other variable. A character pointer is a pointer that points to the character. It's useful because you get to allocate chunks of RAM and use simple arithmetic (ptr + n) to access any element. This is how strings work.
1st Feb 2018, 2:35 PM
Vlad Serbu
Vlad Serbu - avatar