Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
char a[40],temp;
int count=0;
printf("enter the string :");
gets(a);
for(int i=0;a[i]!='\0';i++)
count++;
for(i=0;a[i]!='\0';i++)
{
if(count>i)
{
temp=a[i];
a[i]=a[count-1];
a[count-1]=temp;
count--;
}
else
break;
}
printf("the reversed ones is : ");
puts(a);
getch();
}
thank u
Is This Answer Correct ? | 9 Yes | 21 No |
Post New Answer View All Answers
Write a program to print fibonacci series using recursion?
Explain c preprocessor?
What are the application of void data type in c?
What do you mean by dynamic memory allocation in c?
What are preprocessor directives in c?
Compare array data type to pointer data type
Explain what is the most efficient way to store flag values?
int i=10; printf("%d %d %d", i, i=20, i);
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What is an identifier?
What is void pointers in c?
What is merge sort in c?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
Is c a great language, or what?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?