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 the difference between global variables and static varables?

800


What is a forward referencing and when should it be used?

823


How do you clear a map in c++?

810


What is a map in c++?

765


Define upcasting.

786


How many types of comments are there in c++?

749


What is the use of default constructor?

796


How can you specify a class in C++?

995


How long does it take to get good at leetcode?

880


What is the use of pointer in c++ with example?

771


You run a shell on unix system. How would you tell which shell are you running?

880


Why is the function main() special?

843


Why do we use classes in programming?

765


What is the difference between multiple and multilevel inheritance in c++?

844


Explain bubble sorting.

807