Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void str_cpy(char *,char *);
void main()
{
char a[20],b[20];
printf("enter the string to be copied:");
gets(b);
str_cpy(a,b);
puts(a);
getch();
}
void str_cpy(char *str,char *str1)
{
if(str1!='\0')
{
*str=*str1;
str_cpy(++str,++str1);
}
str='\0';
}
thank u
| Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
Differentiate between #include<...> and #include '...'
Differentiate between static and dynamic modeling.
Write a program that accept anumber in words
What are the restrictions of a modulus operator?
When should we use pointers in a c program?
How variables are declared in c?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Define macros.
How can I do peek and poke in c?
What is the difference between #include
Not all reserved words are written in lowercase. TRUE or FALSE?
How do you define CONSTANT in C?
Why do we use pointer to pointer in c?
Explain bit masking in c?