Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void str_cpy(const char *,const char *);
void main()
{
char a[20],b[20];
printf("enter the string for a[] :");
gets(a);
str_cpy(a,b);
printf("\nthe string for b[] is : ");
puts(b);
getch();
}
void str_cpy(const char *a,const char *b)
{
while((*a)^'\0')
{
*b=*a;
*a++;
*b++;
}
*b='\0';
}
thank u
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of 'register' keyword in c language?
What is the use of f in c?
What is const volatile variable in c?
What is anagram in c?
Which is better pointer or array?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
code for find determinent of amatrix
What is static identifier?
Which node is more powerful and can handle local information processing or graphics processing?
Explain the difference between strcpy() and memcpy() function?
Not all reserved words are written in lowercase. TRUE or FALSE?
Why & is used in c?
Explain the difference between structs and unions in c?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What is use of bit field?