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
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
When you open QTP, how many sheets you can see?
What are the ways you can synchronize?
What is throw object?
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
What are the types of data tables in qtp?
can any one say that where we can download the QTP trail version ??????????
How will you report the bug and explain the defect tracking sheet you handled?
To which environments does quicktest professional (qtp) supports?
what is Property......End Property loop? how to write sript for it in QTP
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?
what is error and fault in terms of software quality?
Explain building blocks of the bpt framework ?
What is the XML file architecture ?
Explain in brief about the quicktest professional automation object model?