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 that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
What is double pointer?
What is the meaning of 2d in c?
In which layer of the network datastructure format change is done
How will you find a duplicate number in a array without negating the nos ?
Discuss the function of conditional operator, size of operator and comma operator with examples.
What is fflush() function?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
Can we assign integer value to char in c?
How is = symbol different from == symbol in c programming?
What is pass by value in c?
Subtract Two Number Without Using Subtraction Operator
What is the purpose of clrscr () printf () and getch ()?
Write a program to check armstrong number in c?