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
Explain process of smart Identification in QTP?
What are the challenges you faced during you entire life automation ?
What is quick test pro?
What is the XML file architecture ?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
How you will rate urself in QTP in the range of 0 to 5
Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...
What are test settings and global settings?
What are the 3 main stages involved in testing with qtp?
How to handle the exceptions using the recovery scenario manager in qtp?
How QTP support all types of applications (platforms)?
What is the syntax to call one action in another?
How many types of status are there?
how can i pass a "cript"as a parameter in to a function
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!