code for copying two strings with out strcpy() function.
Answer Posted / suman_kotte
#inclue<stdio.h>
main()
{
char str1[10],str2[10];
int i=0;
printf("enter the str1");
gets(str1);
while(str1[i]!='\0')
{
str2[i]=str1[i];
i++;
}
puts(str2);
}
| Is This Answer Correct ? | 19 Yes | 2 No |
Post New Answer View All Answers
What is main return c?
How is actual parameter different from the formal parameter?
What is signed and unsigned?
Can we increase size of array in c?
What is array of pointers to string?
How can I implement a delay, or time a users response, with sub-second resolution?
What is cohesion in c?
Where are local variables stored in c?
p*=(++q)++*--p when p=q=1 while(q<=6)
What are the benefits of c language?
In which layer of the network datastructure format change is done
code for quick sort?
What is sizeof array in c?
What is unary operator?
what are bit fields? What is the use of bit fields in a structure declaration?