answersLogoWhite

0

char * RevString( char * str )

{

char * dup = strdup( str );

size_t len = strlen( str );

int x = 0;

int y = len;

while( x

str[ x++ ] = dup[ --y ];

free( dup );

return( str );

}

Note that you don't actually need this function since the standard built-in strrev() function reverses strings more efficiently than this.

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Math & Arithmetic

What multiplication can be found by using the arrays for 2x 9 and 5x9?

7x9


What multiplcation fact can be found by using the arrays for 29 and 59?

They both cannot be


What are 7 ways to do 12 arrays?

To create 12 arrays using 7 different methods, you can consider various strategies such as: Combination: Use combinations of elements to form arrays. Permutations: Rearrange a set of elements to create distinct arrays. Subsets: Generate subsets from a larger set to form smaller arrays. Cartesian Products: Combine multiple sets to produce arrays. Recursive Generation: Utilize a recursive algorithm to build arrays systematically. Random Sampling: Randomly select elements to generate different arrays. Dynamic Programming: Apply dynamic programming techniques to build arrays based on previously computed values. These methods can be employed in various contexts, depending on the desired properties of the arrays.


How do you write a program to performs all airthematic operation between two matrixs using array?

To write a program that performs arithmetic operations between two matrices using arrays, first define two 2D arrays to represent the matrices. Then, create functions for each arithmetic operation (addition, subtraction, multiplication, etc.) that iterate through the elements of the matrices, performing the operation element-wise. Ensure to handle cases where the matrices have different dimensions, as this would affect the validity of the operations. Finally, print the result matrix after each operation.


How do you check orthogonality of a matrix using arrays?

the transpose of null space of A is equal to orthogonal complement of A

Related Questions

Write a program to read your name and reverse it using arrays?

abdulrahman


How can you do the same thing as the program below but using strings and arrays in C language?

Program below?!


Are arrays in C created on the stack or the heap?

That depends on where you define them. Arrays defined inside functions are declared on the stack (like other variables defined in functions). Arrays defined outside of any function, or using the static keyword inside a function are allocated in the static data area of the program. Other arrays may be allocated using malloc() (or "new" in C++); these are allocated on the heap.


TV program name using these letters santad?

Dasant


How do you print my name in c program in vertical manner using arrays?

you need strings to print any character(your name) this is not possible useing array:D


Write a program using iostreams to take as input two multi-dimensional arrays and print their sum as output Matrix Addition in Matrix format?

http://www.assignmentsclub.com/


What is the way by which you can make the user defined the size of the arrays?

By using the library function #define A[] we can define the size of arrays


What is the purpose of using arrays in C language?

The purpose of using arrays in C is to store multiple values in one variable. Then you can make programs that use arrays like lists, printing values from multiple arrays into one line. It take memory in continues block then we can know memory location easily. We can retrieve data quickly.


A program for queue ADT by using arrays in c plus plus?

Arrays are not suitable for implementing queues because while they are ideal for adding to the end, the are not ideal for extraction from the beginning. For that you need a deque. Regardless, the STL (standard template library) already provides an efficient queue ADT in std::queue.


What is memory leakage in terms of arrays?

leakage in arrays occur when you declare an array with big size and using only very few bytes.


How does using smaller arrays help you to multiply?

You have misread or misunderstood something.


What multiplication can be found by using the arrays for 2x 9 and 5x9?

7x9