Answer Posted / valli
main()
{
char s[20],s2[20];
printf("enter the string");
scanf(" %[^\n]",s);
for(i=0;s[i];i++)
s[i]=s2[i];
s2[i]='\0';
printf("%s",s2);
}
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
How many main () function we can have in a project?
How reliable are floating-point comparisons?
Do you know the use of fflush() function?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What is the difference between malloc calloc and realloc in c?
What is pointers in c?
What is the most efficient way to store flag values?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
What are the features of the c language?
Explain why can’t constant values be used to define an array’s initial size?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What is the argument of a function in c?
Where is c used?
Tell me what are bitwise shift operators?
Write a Program to find whether the given number or string is palindrome.