Answer Posted / ruchi
#include<stdio.h>
#include<conio.h>
int main()
{
char a[40],b[40];
int i=0,c,j;
printf("\nEnter the first string ");
while((a[i++]=getchar())!='\n');
for(c=0;c<i;c++)
{
b[c] = a[c];
}
for(j=0;j<i;j++)
{
printf("%c",b[j]);
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
What is the difference between new and malloc functions?
about c language
how to find anagram without using string functions using only loops in c programming
What does %p mean c?
What is selection sort in c?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What is function pointer c?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
Who is the main contributor in designing the c language after dennis ritchie?
What is the use of getchar() function?
What are the string functions? List some string functions available in c.
What are the usage of pointer in c?
What is the use of define in c?
How can I remove the leading spaces from a string?
What is nested structure with example?