Developer Insider

Developer Insider is a community for software developer with articles on different topics and programming languages such as Mobile Application Development , C, C++, Java, Tech News and other topics.


Operator Declarations by Example - Swift Programming Language

An operator is a special symbol or phrase that you use to check, change, or combine values. For example, the addition operator (+) adds two numbers, as in let i = 1 + 2. Swift supports most standard C operators and improves several capabilities to eliminate common coding errors. Like, the assignment operator

Dictionary by Example - Swift Programming Language

Overview A collection whose elements are key-value pairs. A dictionary is a type of hash table, providing fast access to the entries it contains. Each entry in the table is identified using its key, which is a hashable type such as a string or number. You use that key to

Set by Example - Swift Programming Language

Overview An unordered collection of unique elements. You use a set instead of an array when you need to test efficiently for membership and you aren’t concerned with the order of the elements in the collection, or when you need to ensure that each element appears only once in

Array by Example - Swift Programming Language

Overview An ordered, random-access collection. you use the Array type to hold elements of a single type, the array’s Element type. An array can store any kind of elements—from integers to strings to classes. 1. Creating and Initializing an Array 1.1 Creating an Array Swift makes it

Turbo C++ Error - Unable to Open Include File 'STDIO.H'

This problem occurs due to wrong configuration in Turbo C++ directories. Follow these steps to fix the problem - Step 1 - Open Turbo C++. Step 2 - Go in Options menu. Step 3 - Then in Directories... Step 4 - Replace the directories with following - Include Directories ->

How to run (16-bit) .exe files output by Turbo C++?

If your PC is running on 32/64 bit Windows OS, then the older 16-bit application (output by Turbo C++) would not run on it. Here the steps to run a 16-bit .exe files output by Turbo C++. Step 1. Download and Install the latest version of Turbo C++ from

Double by Example - Swift Programming Language

Overview Double represents a 64-bit floating-point number. Double has a precision of at least 15 decimal digits, whereas the precision of Float can be as little as 6 decimal digits. Swift always chooses Double (rather than Float) when inferring the type of floating-point numbers.If you combine integer and floating-point

Float by Example - Swift Programming Language

Overview Floating-point numbers are numbers with a fractional component, such as 3.14159, 0.1, and -273.15. Float represents a 32-bit floating-point number. 1. Converting Floating-Point Values 1.1 init(_:) Creates a new instance that approximates the given value. let x: Double = 21.25 let y = Float(x) print(

Advanced Enum (Enumerations) by Example - Swift Programming Language

1. Properties We can't add actual stored properties to an enum, but we can create computed properties. The value of computed properties can be based on the enum value or enum associated value. Let's create an enum called Device. It's contain a computed property called year, which return the first

Int by Example - Swift Programming Language

Overview A signed integer value type. On 32-bit platforms, Int is the same size as Int32, and on 64-bit platforms, Int is the same size as Int64. 1. Declaring Constants and Variables Constants and variables must be declared before they’re used. You declare constants with the let keyword and
Load more