How to reverse a String without using C functions ?

Answer Posted / abhishek gambhir

int l=0,i;
while(str[l]!='\0')
{
l++;
}
for(i=l-1;i>=0;i--)
{
cout<<str{i];
}

Is This Answer Correct ?    11 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

2309


Write a routine to implement the polymarker function

4364


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

3693


Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

3832


Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

2663






how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2126


Write a program to model an exploding firecracker in the xy plane using a particle system

3674


why nlogn is the lower limit of any sort algorithm?

2360


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

1760


How can you relate the function with the structure? Explain with an appropriate example.

2903


Sir... please give some important coding questions asked by product companies..

1781


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2391


Develop a routine to reflect an object about an arbitrarily selected plane

2972


how to test pierrot divisor

2242


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

6293