Swift 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...
Swift String by Example - Swift Programming Language Overview A string literal is a sequence of characters surrounded by double quotes ("). 1. Creating and Initializing Strings 1.1 Initializing Strings let name = "vineeta" print(name) * String interpolations are string literals that evaluate any included expressions and convert the results to string form. * String interpolations give...
Swift Enum (Enumerations) by Example - Swift Programming Language An enumeration defines a common type for a group of related values and enables you to work with those values in a type-safe way within your code. Types of Enumeration: * Basic Enumerations * Enumerations with Raw Values * Enumerations with Associated Values 1. Basic Enumerations 1.1 Create an enumerations * To...
Primary TextView and EditText in Android 1. How to use simple TextView in android Write this code in .xml file <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width=...
Primary Awesome Bitwise Operations and Tricks with Examples 1. Set nth bit of integer x x | (1<<n) Example #include<stdio.h> int main() { int x = 10; //1010 int n = 2; int result = x | (1<<n); //1110 printf("%d\n", result); //14 return 0; } 2. Unset nth bit of integer...
Wiki What's new in Xcode 9? Xcode is the complete developer toolset used to create apps for Apple TV, Apple Watch, iPad, iPhone, and Mac. The Xcode development environment bundles the Instruments analysis tool, Simulator, and the OS frameworks in the form of tvOS SDKs, watchOS SDKs, iOS SDKs, and macOS SDK. Supported Configurations * Xcode 9...
Primary How to pass Command Line Arguments in Turbo C++ The following are the steps to execute a program with Command Line Argument inside Turbo C/C++ Compiler : 1. Open Turbo C++ Open Turbo C++. If you don't have, you can download Turbo C++ from here. 2. Write a program Following is a simple example which checks if...
Data Structure Introduction to Greedy Algorithms 1. What is Greedy Algorithm? A greedy algorithm, as the name suggests, always makes the choice that seems to be the best at that moment. This means that it makes a locally-optimal choice in the hope that this choice will lead to a globally-optimal solution. However, generally greedy...
Data Structure Introduction to Divide and Conquer (D&C) Algorithm Design Paradigm 1. What is Divide and Conquer? Divide and conquer (D&C) is an algorithm design paradigm based on multi-branched recursion. A divide and conquer algorithm works by recursively breaking down a problem into two or more sub-problems of the same type, until these become simple enough to...
Data Structure Introduction to Asymptotic Notations 1. What is Asymptotic Notations? Asymptotic Notations are languages that allow us to analyze an algorithm’s run-time performance. Asymptotic Notations identify running time by algorithm behavior as the input size for the algorithm increases. This is also known as an algorithm’s growth rate. Usually, the time required...
Data Structure Introduction to Data Structures and Algorithms 1. What is Data Structure? A data structure is a particular way of organizing data in a computer so that it can be used efficiently. Data Structures is about rendering data elements in terms of some relationship, for better organization and storage. For example, we have data of an employee...
Windows 10 Download Windows 10 Creators Update ISO File direct from microsoft.com (32-bit and 64-bit) Windows 10 Creators Update ISO Download Link - https://www.microsoft.com/en-us/software-download/windows10ISO But, If you are try to open this link https://www.microsoft.com/en-us/software-download/windows10ISO Microsft will redirect you to this link https://www.microsoft.com/en-us/software-download/windows10....
Primary What is Dangling Pointer with Cause and How to avoid it? Dangling pointers in computer programming are pointers that pointing to a memory location that has been deleted (or freed). Dangling pointers arise during object destruction, when an object that has an incoming reference is deleted or deallocated, without modifying the value of the pointer, so that the pointer still points...
Primary Big-O Notation Explained with Examples Asymptotic notation is a set of languages that allow us to express the performance of our algorithms in relation to their input. Big O notation is used in Computer Science to describe the performance or complexity of an algorithm. Big O specifically describes the worst-case scenario, and can be...
iOS Vault 7: CIA iOS Developer Guide, Hacks, Notes and Tips & Tricks 1. Disable not charging Popups sudo defaults write com.apple.usbd NoIPadNotifications \-bool YES sudo defaults write com.apple.usbd NoIPhoneNotifications \-bool YES 2. Creating a read only .dmg from a folder hdiutil create ~/Desktop/newimage.dmg -volname "MyVolume" -srcfolder ~/Desktop/myfolder 3. Pairing Records Pairing records are...