write a program to copy a string without using a string?
Answer Posted / j j ramesh
void main()
{
char str1[100],str2[100];
printf("ENTER THE STRING :");
gets(str1);
for(i=0;str1[i];i++)
str2[i] = str1[i]l
pritf("COPIED : %s",str2);
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What is the scope of static variable in c?
Why is it that not all header files are declared in every C program?
What are keywords in c with examples?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Explain what is the best way to comment out a section of code that contains comments?
Why are algorithms important in c program?
Is c object oriented?
How can I invoke another program or command and trap its output?
What are the characteristics of arrays in c?
Write a program to generate the Fibinocci Series
What are identifiers c?
If the size of int data type is two bytes, what is the range of signed int data type?
How are Structure passing and returning implemented by the complier?