answersLogoWhite

0

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

9y ago

What else can I help you with?

Continue Learning about Engineering

What is implied by the argument of the function?

A function (also known as procedure, subroutine, and - in object-oriented languages - as a method) lets you do repetitive calculations in a single place, without having to repeat lots of commands over and over. For example, you might have a function that calculates the square root of a number. An argument (also known as a parameter) is any variable information you pass to your function. For example, in the case of calculating a square root, the argument tells the function what number you want to calculate the square root of. For calculating powers, you might have two arguments: the base, and the exponent. In general, a function can have zero or more arguments - it really depends what it is used for.


What is a signaling function?

a signal source is a function it can be square , triangle sine and any combination of the three


What does sqrt function return?

square root of the argument


What is the function of engineer's square?

to be able to create a right angle on a piece of metal


When a multi dimensional array is passed to a function how are formal argument declaration written?

When a multi-dimensional array is passed to a function in languages like C or C++, the formal argument is typically declared using the array type followed by the number of dimensions in square brackets. For example, a function accepting a two-dimensional array of integers can be declared as void func(int arr[][COLS]), where COLS is the number of columns. Alternatively, you can also specify the size of the second dimension while using a pointer syntax, like void func(int (*arr)[COLS]).

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 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 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 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 [ ]