When a package is installed, it may run a configuration script as part of the installation process. To run this configuration script again at some point in the future, use the dpkg-reconfigure command. Although there are some options to this command, they are rarely used. Syntax of the dpkg-reconfigure command: # dpkg-reconfigure [options] source packages […]
Archives for February 2022
File Handling in C Programming
In all the C programs considered so far, we have assumed that the input data was read from standard input and the output was displayed on the standard output. These programs are adequate if the volume of data involved is not large. However many business-related applications require that a large amount of data be read, […]
Constants, Variables, Data Types in Java
When working with computers, either for something as simple as writing a college paper or as complex as solving quantum theory equations, the single most important thing for the computer to do is deal with Data. Data to a computer can be numbers, characters or simply values. Like any other programming languages, Java supports its […]
C Structures
Arrays provide the facility for grouping related data items of the same type into a single object. However, sometimes we need to group related data items of different types. An example is the inventory record of a stock item that groups together its item number, price, quantity in stock, reorder level etc. In order to […]
C Pointers
The significance of pointers in C is the flexibility it offers in the programming. Pointers enable us to achieve parameter passing by reference, deal concisely and effectively either arrays, represent complex data structures, and work with dynamically allocated memory. Although a lot of programming can be done without the use of pointers, their usage enhances […]
C Functions
A function is a self-contained block of program that performs some specific, well-defined task. A C program consists of one or more functions rather than one large main() function. printf() and scanf() are two predefined functions that we have used so far. Functions break large complicated computing tasks into smaller and simpler ones. Separating a […]
C Strings
What are Strings A string constant is a one-dimensional array of characters terminated by a null (‘\0’) character. Strings are used to store text information and to perform manipulations on them. Strings are declared in the same manner as other arrays. For Example char fruit[10]; When you press any key from the keyboard, then it […]
C Arrays
C language provides a capability called ‘array’ that enables the user to design a set of similar data types. Very often, one needs to process collections of related data items, such as the addition of fifty numbers, test scores of students in a university, a set of measurements resulting from an experiment, income tax tables, […]
C Jumping Statements
There are three different controls used to jump from one C program statement to another and make the execution of the programming procedure fast. These three Jumping controls are: goto statment break statment continue statment It is also sometimes convenient to be able to exit from a loop other than by testing the loop termination […]
C Looping Statements
When a single statement or a group of statements will be executed again and again in a program (in an iterative way), then such type processing is called loop. These statements are also called Iterative Structure or Program Loop. This allows a sequence of program statements to be executed several times, either a specified number […]