char *ch = "abcde";
char c[4];
how to copy 'ch' to 'c'?

Answer Posted / supriya pandey

i think we used the string libruary function strcpy() to
copy it...

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is singleton class in c++?

689


What is else syntax in c++?

737


Can a new be used in place of old mallocq? If yes, why?

718


Do class declarations end with a semicolon?

688


Can I learn c++ without learning c?

655






Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

693


Why c++ is better than c language?

662


When do you call copy constructors?

761


Can member functions be private?

673


What is the full form of ios?

645


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

1932


What is c++ library?

687


Explain the problem with overriding functions

681


When should we use container classes instead of arrays?

674


find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

2092