char arrays and null terminated strings

Character arrays are designated by

Hence, we make an array of characters called “myName” with 10 elements:

Any left over elements that are not taken up by the initialization will have ” or NULL filled in. Using pointer to display string myName is actually a const pointer to the first element of the […]

void pointer

A void pointer, (void *) is a raw pointer to some memory location. The type void * simply means “a pointer into memory; I don’t know what sort of data is there”.

note: When you stream the address of a char to an ostream, it interprets that as being the address of the first […]


An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier. That means that, for example, five values of type int can be declared as an array without having to declare 5 different variables (each with its […]

async to true/false

You set async to false, when you need that ajax request to be completed before the browser passes to other codes:

Does it have something to do with preventing other events on the page from firing? Yes. Setting async to false means that the statement you are calling has to complete before the next […]

Start a Simple HTTP Server in Any Folder

Start a Simple HTTP Server in Any Folder If you’re needing to quickly test some HTML that you’re working on, start a simple web server within any folder on your Mac. Navigate to the folder to use and enter: 1 $ python -m SimpleHTTPServer 8000 The number at the end is the port to use, […]