Yes, 2 pointers can indeed point to the same number.
const char *a = "str";
const char *b = a;
They now point to the same string.
More Related Contents:
- Not able to calculate in C.How do you calculate in C?
- C – Counting Numbers {making a program} [closed]
- How can I check if an element in an array is equal to something in C? [closed]
- Having a segmentation fault
- How can I get a text file into a string but whith the “\n” in C?
- Pointer Arithmetic [closed]
- Convert hex string (char []) to int?
- How to represent FLOAT number in memory in C
- How can I suppress “unused parameter” warnings in C?
- How to read string from keyboard using C?
- What does i = (i, ++i, 1) + 1; do?
- Can C arrays contain padding in between elements?
- What is the purpose of the RBP register in x86_64 assembler?
- How do I print a non-null-terminated string using printf?
- practical examples use dup or dup2
- strcmp() return values in C [duplicate]
- scanf not working as expected
- How to convert integer value to Roman numeral string?
- C getopt multiple value
- Scatter Matrix Blocks of Different Sizes using MPI
- fork and existing threads?
- How to find the size of an array (from a pointer pointing to the first element array)?
- Why we need Clobbered registers list in Inline Assembly?
- Using true and false in C
- Is while(1); undefined behavior in C?
- How to set the IP address from C in linux
- What is a good reference documenting patterns of use of “.h” files in C? [duplicate]
- How to compile and run C in sublime text 3?
- Default case in a switch condition
- How to decrypt simple XOR encryption