What is the meaning of * in pointer

WHAT IS THE MEANING OF CHAR*B PTR
why we need to define the pointer concept
why address cannot be stored in asimple variable

Hello @Bhavit_Singla,

  1. ‘*’ indicates the compiler that the variable defined is a pointer.
    In simple words, to differentiate between pointers and normal variables.

  2. I would prefer answer the next two questions together as they are inter-related.
    A pointer is a variable that stores the address of another variable.
    To understand the need of pointer try to figure out the answer of the following question:
    Why do we have different data-types? Why not a single for all of them? Think.
    What is the difference between them?
    These datatypes store different types of data and requires different number of bits.
    int - 4 bytes
    char - 1 byte … so on
    Similarly,
    To store address we need 8 bytes.
    Thus, to store these 8 bytes of an address, we use pointers not a normal variable.

Hope, this would help.
Give a like, if you are satisfied.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.