answersLogoWhite

0


Best Answer

void reverse (char* str) {

char *left, *right, temp;

left = right = str;

while (*right) ++right;

--right;

while (left < right) {

temp = *left;

*left = *right;

*right = temp;

++left;

--right;

}

}

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to write a function to reverse an array without using square brackets in the function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the correct name for square and squiggly brackets?

* round brackets, open brackets or parentheses: ( ) * square brackets, closed brackets or box brackets: [ ] * curly brackets, squiggly brackets, swirly brackets, braces, or chicken lips: { }


What is the correct usage of square brackets?

Square brackets are used for citations in formal pieces of text. Instead of using normal brackets, the square brackets signal something that has been added in after publishing.


How do you use square brackets in a sentence?

Square brackets are used inside regular parentheses, in a sentence.


Names of brackets?

* round brackets, open brackets or parentheses: ( ) * square brackets, closed brackets or box brackets: [ ] * curly brackets, squiggly brackets, swirly brackets, braces, or chicken lips: { }


Parentheses or brackets are called?

They are a form of punctuation. Here are some examples of brackets: ( ) - parentheses [ ] - brackets or square brackets { } - braces or curly brackets &lt; &gt; - angular brackets


What are parentheses and brackets called?

They are a form of punctuation. Here are some examples of brackets: ( ) - parentheses [ ] - brackets or square brackets { } - braces or curly brackets &lt; &gt; - angular brackets


What are the grouping symbols in algebra?

parenthesis ( )square brackets [ ]curly brackets { }


What is another word for parentheses or brackets?

round brackets, open brackets or parentheses: ( )square brackets, closed brackets or box brackets: [ ]curly brackets, squiggly brackets, swirly brackets, braces, or chicken lips: { }angle brackets, diamond brackets, cone brackets or chevrons: < > or &#10216; &#10217;


What are the different types of brackets?

The different types of brackets are: * round brackets, open brackets or parentheses: ( ) * square brackets, closed brackets or box brackets: [ ] * curly brackets, squiggly brackets, swirly brackets, braces, or chicken lips: { } * angle brackets, diamond brackets, cone brackets or chevrons: < > or &#10216; &#10217;


What are the types of parentheses and brackets?

The different types of brackets are: * round brackets, open brackets or parentheses: ( ) * square brackets, closed brackets or box brackets: [ ] * curly brackets, squiggly brackets, swirly brackets, braces, or chicken lips: { } * angle brackets, diamond brackets, cone brackets or chevrons: < > or &#10216; &#10217;


What are parentheses or brackets?

Brackets are punctuation marks used in pairs to set apart or interject text within other text. In the United States, "bracket" sometimes refers specifically to the square or box type.There are four main types of brackets:round brackets, open brackets or parentheses: ( )square brackets, closed brackets or box brackets: [ ]curly brackets, squiggly brackets, swirly brackets, braces, or chicken lips: { }angle brackets, diamond brackets, cone brackets or chevrons: < > or &#10216; &#10217;


What does bracketing mean?

These are square brackets [ ]