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
Is anything faster than c?
What are the types of arrays in c?
Can a file other than a .h file be included with #include?
Write a program that accept anumber in words
What is static volatile in c?
What is dynamic variable in c?
Is there any data type in c with variable size?
What is function prototype?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What's the right way to use errno?
What is break in c?
What are reserved words with a programming language?
what value is returned to operating system after program execution?
In C programming, what command or code can be used to determine if a number of odd or even?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none