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
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What is include directive in c?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What is page thrashing?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Why do we use namespace feature?
What is the difference between int main and void main?
How do you do dynamic memory allocation in C applications?
Explain about the functions strcat() and strcmp()?
Why is c known as a mother language?
What is openmp in c?
What does the c preprocessor do?
Describe the order of precedence with regards to operators in C.
Why is structure padding done in c?
Explain how can I write functions that take a variable number of arguments?