Theme Graphic
Theme Graphic

Figuring out Programming

This is my place for recording my thoughts on what I learn. There is a big gap where I wrote nothing but I have been very busy lately! The...

Subscribe

Author

I finished learning "C++ from the ground up". found out i need more than just this book to become a programmer. I am still determined to become a programmer!

Archive

Tags

Posted on Tuesday, February 10, 2009 at 3:36 AM

This is getting intresting.


C is actually not as bad as I thought it would be(accept for the type casting though) it is a bit more work than C++ because it sometimes takes a bit more code to do the same thing but that makes it obvious to why they changed it in c++. some of the features may even be useful...
Tags: None
Bookmark: Submit To Digg Submit To reddit Submit To del.icio.us Bookmark With StumbleUpon Bookmark With FaceBook Bookmark With Google Bookmarks   Share: Share By Email By Email

1 comments on "This is getting intresting."
Posted by Malcolm_McLean on Friday, February 13, 2009 at 2:57 PM
Image Of Author
Types are a nuisance
Types are a nuisance in C. Your data usually consists of strings, real values, and integers. The integers are usually ultimately an index into some sort of array.

So really you need only three basic types. However you also build structures out of those types, and make pointers to them. Finally because of machine efficiency reasons various representations are used - flaots and doubles for reals, shorts int and longs for integers. In themselves these aren't too much of a problem, they can be mixed and matched. Incompatibilities arise when you pass them by indirection. A short * won't mix with an int *, even if the underlying machine representation is the same.

Leave A Comment
Subject:


Comment:
   Bold Italic Underline          Code Link Image Horizontal Rule


Because you do not have or are not logged in to your Programmer's Heaven account, please enter your name.

Name:


To help prevent comment SPAM, please enter the magic code '214' in the box:




Posting Rules
Please follow these rules when posting comments on blog posts.
  • Do not post anything that is racist, hate speech or of a sexual or adult nature.
  • Do not post or link to anything that infringes copyrighted laws.
  • Posting about security or legal topics is fine so long as you are not glorifying or encouraging people to perform illegal activities.
  • Both the author of this blog and the Programmer's Heaven administrators may delete any inappropriate comments without notice at their own discretion.
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.