In the following program, the output is BrownherAdamss. Why is the correct output not coming? As in the second program, the output is coming correct, so getting confused about what's happening. Warning in both programs coming but the 2nd program running well. The warning is ISO C++ forbids converting a string constant to 'char'. Also if I declare the array of pointers as const, then how will I use p[i]=client[i]. This confusing me a lot. In the following program, the output is Brownhe