How to Convert a Recursive Function or Algorithm to Non-Recursive?

Any recursive function can be converted to non-recursive function through use of a stack as explained below. A recursive call is similar to a call to another function. Any call to a function requires that the function has storage area where it can store its local variables and actual parameters. Return address must be saved …

How to Convert a Recursive Function or Algorithm to Non-Recursive? Read More »

jQuery Touch Application Development: A Powerful Technology For Feature-rich Apps

In today’s scenario, the smartphone is leading ahead of the mobile as well as desktop/laptop. Owing to which, there is the huge demand for feature-rich applications that are not only functional, but also seem to have a great interface. Numerous of application development industries are working to have effective, seamless, alluring, functional and innovative application. …

jQuery Touch Application Development: A Powerful Technology For Feature-rich Apps Read More »

How to Swap Two Numbers Without Using Temporary Variable or Arithmetic Operators?

You have done swapping of two numbers using temporary variable or by using arithmetic operators. It can be done in following way. Lets take two numbers a=5 and b=7. Using Temporary Variable temp=a;            //temp becomes 5 a=b;                 //a becomes 7 b=temp;            //b becomes 5 Also Read: C++ program to swap two numbers using pointers Also Read: C++ …

How to Swap Two Numbers Without Using Temporary Variable or Arithmetic Operators? Read More »

C++ Program to Print Numbers From 1 to n Without Using Loops, Recursion or Goto Statement

You may have made program to print numbers from 1 to n using loops, recursion or goto statement. But have you ever thought about doing this without help of loops, recursion or goto? It can be done without using such things as explained in below program.Also Read: C program to find factorial of any number using …

C++ Program to Print Numbers From 1 to n Without Using Loops, Recursion or Goto Statement Read More »