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 the code to reverse a string without using Strrev
built in function.

Answer Posted / logesh gunasekar

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
char oldMsg[100], newMsg[100];
int cd = 12, cu = 0;
strcpy(newMsg, "Hello World!");
while (cd > 0)
{
newMsg[cu] = oldMsg[cd];
cu++;
cd--;
}
printf("%c", newMsg);
printf("\n\nPress ENTER to end . . .");
getchar();
return 0;
}

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible

1886


When you open QTP, how many sheets you can see?

1070


What are the ways you can synchronize?

1043


What is throw object?

2363


Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know

1870


What are the types of data tables in qtp?

1003


can any one say that where we can download the QTP trail version ??????????

1756


How will you report the bug and explain the defect tracking sheet you handled?

3085


To which environments does quicktest professional (qtp) supports?

1015


what is Property......End Property loop? how to write sript for it in QTP

2385


Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

1083


what is error and fault in terms of software quality?

1976


Explain building blocks of the bpt framework ?

1080


What is the XML file architecture ?

1990


Explain in brief about the quicktest professional automation object model?

941