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
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What is advantage of pointer in c?
What is a null string in c?
How can I write a function analogous to scanf?
Write a program to print "hello world" without using a semicolon?
What are the advantages and disadvantages of pointers?
How can you increase the size of a statically allocated array?
Why is c so powerful?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is external variable in c?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
program to convert a integer to string in c language'
Is fortran still used in 2018?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What are static variables in c?