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
How can I get back to the interactive keyboard if stdin is redirected?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
What is unary operator?
Explain what is operator promotion?
What is New modifiers?
What do header files do?
Is c language still used?
Can a file other than a .h file be included with #include?
How many types of sorting are there in c?
What is the difference between NULL and NUL?
Why is event driven programming or procedural programming, better within specific scenario?
How do you define CONSTANT in C?
What is the newline escape sequence?
What is a pointer on a pointer in c programming language?
Is c# a good language?