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
What is the acronym for ansi?
Is python a c language?
What are the different file extensions involved when programming in C?
What is the sizeof () operator?
What is meant by preprocessor in c?
Explain how do you list files in a directory?
What are the general description for loop statement and available loop types in c?
What is #include cctype?
What is main () in c?
Did c have any year 2000 problems?
What is the difference between #include and #include 'file' ?
Why should I use standard library functions instead of writing my own?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
what are bit fields in c?
What is property type c?