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 do you know about the use of bit field?
What are global variables and explain how do you declare them?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
what is the syallabus of computer science students in group- 1?
What is the meaning of && in c?
What are the 5 data types?
Tell me can the size of an array be declared at runtime?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What is difference between union All statement and Union?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
Where are some collections of useful code fragments and examples?
What is local and global variable in c?
number of times a digit is present in a number
What functions are in conio h?