Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write function to reverse char array ... without using second
array

Answer Posted / nagesh r. dalave

void main()
{
char strp20];
int len=0,i=0;
printf("\nEnter a string ");
gets(str);
while(str[i]!='\0')
{
i++;
len++;
}
printf("\nReverse of given string:");
while(i>=0)
{
printf("\n %c",str[i]);
i--;
}
getch();
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is integer constants?

1061


If the size of int data type is two bytes, what is the range of signed int data type?

1011


Is c a great language, or what?

1093


Write a program to check armstrong number in c?

1119


Tell me what are bitwise shift operators?

1121


Explain two-dimensional array.

1040


What is switch in c?

1070


if p is a string contained in a string?

1831


Can you mix old-style and new-style function syntax?

1087


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15792


What is the difference between void main and main in c?

1142


What are the application of c?

1083


What is the maximum no. of arguments that can be given in a command line in C.?

1128


What is the easiest sorting method to use?

1143


What is c variable?

1030