
Search In
Passing argument to a function by reference is also know as call by reference. In this method if we change the parameter given in the function will effect the argument. For passing a value by reference, we use pointers. As we use pointers in call b
Printing Hello Without using semicolon:
As we know to print something in C we use printf and ends it with semi-colon but we can print something without using semicolon.
With Semicolon we print something like this:
#include<stdio.h>
void main
We all know that for...in loop is used to iterate over enumerable properties of object as well as properties of its prototypes, but what if we want to iterate over properties attached to the object itself, and not its prototypes.
this is where hasOw
Enum:
It is a special data type used to define fixed set of constants . Enum can contain constants, methods etc. We can use enum with switch statement easily. Enum keyword is used to create enums.
Example:
class EnumDemo{
public enum Co
I need an android app developer with java and native code experience using C or C++ to create a NoRootFirewall app. This app will support devices between API 15 and 23. The app will be able to filter data access to every system/installed application
A namespace is used as an additional information to differentiate similar functions, classes, variables etc. with the same name available in different libraries.
Namespaces are used to identify and differentiate the same entities that
Here is an small intro of unity initialisation function name start and Awake.
Start
Start function is called only if the script component is enabled.
Start and Awake both are only called once in a lifetime.
Start function is called up after Awake a
Google Map v3: Calculate Distance
How to calculate distance between two end points in google map v3?
Use the Haversine formula to calculate distance between two end points.
Note: you must add &libraries=geometry to your script source. This is
Here is the code for creating the triangular uiimageview -
UIBezierPath *bzrPath = [UIBezierPath new];
[bzrPath moveToPoint:(CGPoint){0, self.imgView.frame.size.height}];
[bzrPath addLineToPoint:(CGPoint){80, 0}];
[bzrPath addLineTo
If you want to get newest file from any specific directory, you can use the following source code:
C# code
FileInfo GetNewestFile(DirectoryInfo directoryInfo)
{
return directoryInfo.GetFiles()
.Union(directoryInfo.GetDirectories().Select(d
