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 used...
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...
Primary What is the difference between const int * and int const *? One simple answer - read it backwards (as driven by Clockwise/Spiral Rule [http://c-faq.com/decl/spiral.anderson.html]). * int * ptr - ptr is a pointer to int * int const * ptr - ptr is a pointer to constant int * int * const ptr - ptr is a constant pointer to...
Primary Why does the indexing of Array start with Zero in C? Martin Richards, creator of the BCPL language (a precursor of C), designed arrays initiating at 0 as the natural position to start accessing the array contents in the language, since the value of a pointer p used as an address accesses the position p+0 in memory. The name of...
Primary Mathematics and number based challenges The programming ideas/challenges featured here can be programmed in popular programming languages like C, C++, C#, Java, Go, Python, Ruby, JavaScript and PHP for either the Web, MacOS, Windows PC, Android, Windows Phone or iOS. Just fire up your favourite IDE, begin work on any of the program/projects...
Primary Memory Layout / Representation of C Program Memory layout / representation of C program is organized in following fashion - 1. Text or Code segment 2. Initialized data segment 3. Uninitialized data segment 4. Stack 5. Heap 1. Text or Code Segment Text segment contains machine code of the compiled program. Usually, the text segment is shareable so...
iOS SKStoreReviewController - Allow Users to Provide Ratings From Within Your iOS App iOS 10.3 [https://developer.apple.com/library/prerelease/content/releasenotes/General/WhatsNewIniOS/Articles/iOS10_3.html] introduces a new way to ask customers to provide App Store ratings and reviews for your app. Using the SKStoreReviewController API, you can ask users to rate or review your app while they&...
Downloads Download Visual Studio 2017 Web Installer / ISO (Community / Professional / Enterprise) Please read Visual Studio 2017 system requirements before installing: Supported Operating Systems Visual Studio 2017 will install and run on the following operating systems: * Windows 10 version 1507 or higher: Home, Professional, Education, and Enterprise (LTSB is not supported) * Windows Server 2016: Standard and Datacenter * Windows 8.1 (with Update...
Primary What is Digraphs, Trigraphs and Tokens? - C/C++ Programming Language In computer programming, digraphs and trigraphs are sequences of two and three characters, respectively, that appear in source code and, according to a programming language specification, should be treated as if they were single characters. Why Digraphs and Trigraphs exist? Various reasons exist for using digraphs and trigraphs: keyboards may...
Primary Storage Classes in C Programming Language Storage class specifiers are the keywords which can appear next to the top-level type of a declaration. The use of these keywords affects the storage duration and linkage of the declared object, depending on whether it is declared at file scope or at block scope: 1. auto This storage class...
Primary An Untold Story of Storage Class in C Programming Language Storage class specifiers are the keywords which can appear next to the top-level type of a declaration. The use of these keywords affects the storage duration and linkage of the declared object, depending on whether it is declared at file scope or at block scope: KeywordStorage DurationLinkageRemarksstaticStaticInternalSets internal linkage for...
Primary Simple and Static Assertion (assert) in C Programming Language An assertion is a statement used to assert that a fact must be true when that line of code is reached. Assertions are useful for ensuring that expected conditions are met. 1. Simple Assertion Simple assertion can be implemented using assert(expression) method of assert.h header file. Syntax assert(...
Primary 11 Most Common Pitfalls in C Programming Language 1. Mixing signed and unsigned integers in arithmetic operations It is usually not a good idea to mix signed and unsigned integers in arithmetic operations. For example, what will be output of following example? #include <stdio.h> int main(void) { unsigned int a = 1000; signed int b = -1;...
Primary C Programming Language Version History As you know, C was originally developed by Dennis Ritchie between 1969 and 1973 at Bell Labs, and used to re-implement the Unix operating system. It has since become one of the most widely used programming languages of all time, with C compilers from various vendors available for the majority...