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
How will you delete a node in DLL?
Is a pointer a kind of array?
Describe static function with its usage?
I need testPalindrome and removeSpace
#include
What is string concatenation in c?
What does c mean?
Where does the name "C" come from, anyway?
What is linear search?
What is meant by initialization and how we initialize a variable?
How can I trap or ignore keyboard interrupts like control-c?
What is difference between far and near pointers?
What is this infamous null pointer, anyway?
int i=10; printf("%d %d %d", i, i=20, i);
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is extern c used for?