please tell me what is the size of char pointer in cpp?

sizeof( char* )

Size of a pointer in c++ does not vary with datatype, as it's just a pointer pointing to a memory location.
For a 32-bit system, i guess it's 4 bytes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.