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
What VBScript operators, functions, and statements do you use in QuickTest Professional?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
What are the differences between quicktest professional (qtp) and winrunner?
Define Canvas view of UFT?
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
how do i know how to use tools
To which environments does quicktest professional supports?
can i compare two databases using QTP ?
How qtp identifies objects?
Explain in brief about the quicktest professional automation object model?
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.
What is difference in global and action sheet in qtp?
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?