Spending the evening focusing entirely on C. Just finished a fun tutorial on pointers.
// Using pointers in C/C++
#include <stdio.h>
void main()
{
int a = 14;
int* p = &a; //Declares int pointer (p) pointing to (a)
// Where does (a) live in memory?
printf("Address for a is %p\n", &a);
printf("Address inside p is %p\n", p);
if (p == &a)
printf("P is point to a!\n");
else
printf("P is NOT pointing to a!\n");
}
In February of 2018, I was denied admission to a Ph.D. program in Linguistics. As I was navigating the application process, I simultaneously revisited a dormant interest in computer science. In March I enrolled in a certified Computer Science class via HarvardX, which I completed four months later. I am at the beginning of a new phase in my life-long learning process and look forward to that which the future will inevitably deliver.
Subscribe to:
Post Comments (Atom)
SQL
I've hit a wall in my SQL studies via the Khan Academy, and as such, I am engaging in additional studies prior to attempting to move for...
-
I'm studying intermediate programming in Python and the DataCamp course I'm taking is using Google Sheets. All of the following info...
-
I found an amazing tutorial for writing a brick breaking style game in Java. I walked through the video, typing all of the code, and was ab...
No comments:
Post a Comment