Sabtu, 31 Desember 2016

What are compiler control directives in C programming

Following are the compiler control directives: These compiler control directives are used in different situations. They are: Situation 1 You have included a file containing some macro definitions. It is not known whether a certain macro has been defined in that header file. However, you want to be certain that the macro is defined. This situation refers to the conditional definition of a macro. We want to ensure that the macro TEST is always defined, irrespective of whether it has been defined in the header file or not. This can be achieved as follows: 1 2 3 4 #include”DEFINE.H” #ifndef

The post What are compiler control directives in C programming appeared first on Coding Security.


What are compiler control directives in C programming
read more

How to use nested functions in C Programming

A function calling another function within its function definition is known as a nested function. So, far we are declaring a main function and calling other user-defined functions and predefined functions like printf, scanf, gets, putsetc., So, main function can be treated as a nested function. Let’s see the following example: In the above example, the main function is calling three functions namely: clrscr, func1 and getch. So, main is a nested function. Also, in the definition of func1, it is calling another function func2. So, func1 is also a nested function. Note: In programs containing nested functions, the enclosing

The post How to use nested functions in C Programming appeared first on Coding Security.


How to use nested functions in C Programming
read more

How to handle immutable strings in java

A string is a collection of characters. In Java, strings can be created using three predefined classes namely String, StringBuffer and StringBuilderwhich are available in java.lang package. Why did Java designers provide three classes for creating strings?   Each of the above three string classes has their own advantages and disadvantages. If you want to create an immutable (whose content cannot be changed once created) string, String class is the best choice. Strings created using StringBuffer and StringBuilder classes are mutable (content can be changed after they are created).   Among StringBuffer and StringBuilder classes, strings created using StringBuffer are thread safe whereas strings

The post How to handle immutable strings in java appeared first on Coding Security.


How to handle immutable strings in java
read more

Jumat, 30 Desember 2016

How to install a package manager in Windows 10

What is a Package Manager? If you’re familiar with linux, you probably know what package managers are and how they work. However, if you’ve never used any linux distribution aka distro, this term may be new for you. Anyway, we’re going to explain it. As a Windows user, you typically install software by downloading an .exe or .msi file from the internet and executing that file. However, on linux, things are dramatically different. On linux, you use special software typically referred to as the Package Manager. Different linux distros have different package managers. The Package Manager lets the user download

The post How to install a package manager in Windows 10 appeared first on Coding Security.


How to install a package manager in Windows 10
read more

What is the difference between array notation and address

In computer science, an array data structure, or simply an array, is a data structure consisting of a collection of elements , each identified by at least one array index or key. An array is stored so that the position of each element can be computed from its index tuple by a mathematical formula. The simplest type of data structure is a linear array, also called one-dimensional array. For example, an array of 10 32-bit integer variables, with indices 0 through 9, may be stored as 10 words at memory addresses 2000, 2004, 2008, … 2036, so that the element

The post What is the difference between array notation and address appeared first on Coding Security.


What is the difference between array notation and address
read more

How to create a job Queue in Laravel Framework

In computer science, a queue  is a particular kind of abstract data type or collection in which the entities in the collection are kept in order and the principal (or only) operations on the collection are the addition of entities to the rear terminal position, known as enqueue, and removal of entities from the front terminal position, known as dequeue. This makes the queue a First-In-First-Out (FIFO) data structure. In a FIFO data structure, the first element added to the queue will be the first one to be removed. This is equivalent to the requirement that once a new element

The post How to create a job Queue in Laravel Framework appeared first on Coding Security.


How to create a job Queue in Laravel Framework
read more

Kamis, 29 Desember 2016

What is Servlet Application Programming Interface

Servlet API is a set of classes and interfaces that specify a contract between a servlet class and a servlet container. Some examples of servers that provide servlet containers are: Apache Tomcat, Oracle’s WebLogic, IBM’s Websphere, JBoss etc. All the API classes and interfaces are grouped into following packages: javax.servlet javax.servlet.http   javax.servlet Package   Provides a set of classes and interfaces that describe and defined the contract between the servlet class and the runtime environment provided by the servlet container. Following are the interfaces available in this package: Following are the classes available in this package: Following are the

The post What is Servlet Application Programming Interface appeared first on Coding Security.


What is Servlet Application Programming Interface
read more