Questions: 1 680

Answers by our Experts: 1 680

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Task 1: Reverse a character string.

Write a function called str_rev() that takes a pointer to a string as input and reverses the string in-place (this change should be reflected in the original string that was passed to the function, not to a copy of the string). No library functions for string reversal should be used. The function should also return a pointer to the reversed string.

Function prototype is given below:

char * str_rev(char * str);


Write a function median_2d()that computes the median for a 2D numeric array (matrix). The inputs to the function are a pointer to the start of the array, and its dimensions (rows and cols). Your function should not modify the contents of the original matrix! The function prototype is given below.

float median_2d(float * ptr_array, int rows, int cols);


Write a function called str_rev() that takes a pointer to a string as input and reverses the string in-place (this change should be reflected in the original string that was passed to the function, not to a copy of the string). No library functions for string reversal should be used. The function should also return a pointer to the reversed string.

Function prototype is given below:

char * str_rev(char * str);


write a program that swaps values between different locations in a two dimensional array. make sure that the locations between which the values are being exchanged are symmetric.


write a program that uses a two dimensional of 256*8 to store 8 bit binary representations of each of the characters of ASCII character set.


write a program that swaps values between different locations in a two dimensional array.

make sure that the location between which the values are being exchanged are symmetric.


Design a C program to exchange the keys. The Two friends Bob and Jim met in a bank and discussed about their secret code. They decided to exchange their passwords for further transactions. Password of Bob is "Apple" and Jim is Orange". Print the password of Jim and Bob.


Write a program that swaps values between different locations in a two dimensional array. Make sure that the locations between which the values are being exchanged are symmetric.


Write a program that uses a two dimensional of 256 x 8 to store 8 bit binary representations of each of the characters of ASCII character set


Write a function that accepts three arguments a number n, and two characters s and t. The function convert n from s unit to t unit of similar physical quantities. You can choose one of the following types to use in your program:

1. Length

2. Temperature

3. Area

4. Volume

5. Weight

6. Time


LATEST TUTORIALS
APPROVED BY CLIENTS