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

How was c created?

1004


Is c easy to learn?

949


Can we change the value of #define in c?

974


What is keyword in c?

974


how to make a scientific calculater ?

2029


shorting algorithmS

2216


When should the register modifier be used? Does it really help?

934


what is recursion in C

1036


what type of questions arrive in interview over c programming?

1992


What is void main ()?

1033


Can we access the array using a pointer in c language?

1013


What does %c do in c?

949


What are the different types of pointers used in c language?

1011


What is a pointer variable in c language?

1050


What is the modulus operator?

1169