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 void pointers in c?

954


Why string is used in c?

951


What is the use of getchar() function?

1069


Explain b+ tree?

1003


What does c mean?

969


how should functions be apportioned among source files?

1053


Explain the term printf() and scanf() used in c language?

996


write a program to print data of 5 five students with structures?

2002


Process by which one bit pattern in to another by bit wise operation is?

1094


How do you generate random numbers in C?

1143


Why enum is used in c?

892


What is assignment operator?

994


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1013


write a progrmm in c language take user interface generate table using for loop?

1989


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1029