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
How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)
Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,
suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question
How to remove associated function library?
How to delete an object from the object repository?
How many types of run modes are there in qtp?
How to handle Java tree in QTP?
Explain the Different types of QTP test assets and their extensions?
Key word driven framework
How to use the object spy in quicktest professional (qtp) 8.0 version?
In qtp, how you can get the last character from a string?
How to add verification steps to tests?
images are dynamically changes how to compare two images with out using the bitmap
can any one say that where we can download the QTP trail version ??????????
Explain the concept of object repository and how QTP recognizes objects?