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
Write a Program to find whether the given number or string is palindrome.
What type of function is main ()?
When was c language developed?
Explain the ternary tree?
Explain what are the advantages and disadvantages of a heap?
Write a program of prime number using recursion.
what is the function of pragma directive in c?
What is calloc in c?
why we wont use '&' sing in aceesing the string using scanf
What is an array in c?
Why c is called a middle level language?
Can variables be declared anywhere in c?
What do you mean by Recursion Function?
What does %c mean in c?
What's the total generic pointer type?