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
How can I find out how much free space is available on disk?
Is it possible to pass an entire structure to functions?
When should volatile modifier be used?
What is merge sort in c?
What is declaration and definition in c?
What is the difference between union and anonymous union?
How can you avoid including a header more than once?
differentiate built-in functions and user – defined functions.
What is build process in c?
What is time complexity c?
Explain pointer. What are function pointers in C?
What is the difference between fread buffer() and fwrite buffer()?
Is there a way to jump out of a function or functions?
Explain how can you check to see whether a symbol is defined?
What is strcmp in c?