>Actually what I want to do is to make a string pointer array (2D) from set of string pointers.
Congratulations, you completely failed to do as I requested by repeating your original question with different words.

I'm willing to bet that you'd be better off with a smarter data structure than an array (though you already have your solution for the array), but until you describe what you're trying to accomplish by collecting these names, I can't say for sure.

These set of strings name1, name2, etc are set of strings gathered from different functions. Finally I will have to use them at once so the option was to make a array of strings through them. So after that when I went for assigning elements what happeand was My boss looked at the code and asked me two remove one by one assignment and asked me do a single line assignment for easiness of the code. So Now Im looking for that kind of assignment but nothings working :((

>These set of strings name1, name2, etc are set of strings gathered from different functions.
Why aren't you gathering them into a 2D array to begin with?

>My boss looked at the code and asked me two remove one by one assignment
>and asked me do a single line assignment for easiness of the code.
You mean for conciseness. Easy and short are quite often contradictory goals. In this case, you're trying to do something different (initialization instead of assignment) and your compiler is rightly complaining. You can easily put the assignments on one line:

name_all[0] = name1; name_all[1] = name2

And even in one statement:

name_all[0] = name1, name_all[1] = name2

But that doesn't make the code any easinessier. It just makes it fuglier and ultimately more difficult to grok.

My recommendation is to use the data structure you want from the beginning rather than try to shoehorn it in after the fact.

Were I you, I'd also tell the boss that if he wants to write this code, he's welcome to it, but if he doesn't, then he'll just have to accept that I'm a good enough programmer not to need a backseat programmer squawking in my ear about trivial things.