Describe a string reversal algorithm. Write the difference between a [ ] [ ] and **a.
String Reversal Algorithm:
strrevers() { char str[50]; char rev[50]; int i=-1,j=0; printf("Enter any string : "); gets(str); while(str[++i]!='\0') while(i>=0) rev[j++] = str[--i]; rev[j]='\0'; printf("Reverse of string is : %s",rev); }
Difference between a [ ] [ ] and **a:
a[ ][ ] is represent two dimensional array.
**a represent pointer to pointer.
Describe a string reversal algorithm. Write the difference between a [ ] [ ] and **a.
a) Sort the following list using the Radix Sort :
189, 205, 986, 421, 97, 192, 535, 839, 562, 674
What is “Top-Down and Bottom-Up Design” approach?
Write a C program to find factorial(using recursion) of any no.
Write a C program to find the roots of a quadratic equation.
What is a Judy array?