What is C?

C is an older language than most of what’s on my resume. C programs look like this…

#include 
#include 
 
int main(void)
{
  int i = 1;
  int sum = 0;
  while (i < 1000)
  {
   if (i % 3 == 0 || i % 5 == 0)
    sum = sum + i;
   i = i + 1;
  }
  printf("%i\n",sum);
  return 1;
}

And C++, C's slightly more modern counterpart, looks very similar:

#include 
using namespace std;
int main()
{
        int sum = 0;
        for (int i = 1; i < 1000; i++)
                if (i % 3 == 0 || i % 5 == 0)
                        sum += i;
        cout << sum << endl;
}

I picked up C in high school from Sam's Teach Yourself C in 21 Days. Suffice it to say, it took longer than 21 days. I still remember Chapter 9 - pointers - was very hard to understand at the time. Hell, they're still hard to remember sometimes, now that I use mostly memory-managed objects! I learned C++ in college, then Java seemed like the next logical choice to pick up and play with. Java is syntactically very similar to C/C++. In fact, this is often called "C-family" syntax.