Tower of Hanoi in C

What is Tower of Hanoi? All must be well aware of the problem of Tower of Hanoi, for those who don’t know, let’s discuss it once again. The Tower of Hanoi (also called the Tower of Brahma or Lucas’ Tower, and sometimes pluralized) is a mathematical game or puzzle. tower of hanoi   It consists of three rods, and a…

Pointers in C

What are Pointers in C programming language? Pointers are not exclusive to functions, but this seems a good place to introduce the pointer type.   Imagine that we have an int called i. Its address could be represented by the symbol &i. If the pointer is to be stored as a variable, it should be stored like this. int *pi…

Exceptions in Java

[ad_1] What is an Exception? An exception is an event, which occurs during the execution of a program i.e at run time, that disrupts the normal flow of the program’s instructions. When an error occurs in a method, the method creates an Object known as Exception Object and hands it off to the runTime system. The exception object contains information…

File Handling in C (1)

[ad_1] File Handling in C This section describes the use of C’s input / output facilities for reading and writing files. There is also a brief description of string handling functions here. The functions are all variants on the forms of input / output which were introduced in the previous section. 1)UNIX File Redirection UNIX has a facility called redirection…