Thread: Hello, I just started learning C

  1. #1
    Registered User
    Join Date
    Feb 2009
    Kraljevo, Serbia

    Hello, I just started learning C

    Sorry for being a noob but I just started first C tutorial today, I have an experience in Perl Ruby, Perl VB and Pascal but not C, I would check out all of other tutorial on the site but it is mid night at me so here is what I want to know, when you print and scan a integer variable, you use
    whatever("%d", &x);
    So what do you implement for %d when useing a Char, float etc.? Sry for being noob

  2. #2
    Super Moderator
    Join Date
    Sep 2001

    There's a nice little list - when you need a reference for stuff like that, Google's usually really good at finding what you need.

  3. #3
    Join Date
    Oct 2007
    Inside my computer
    And also, printf does not need the address of what you want to print (with the exception of strings), so...
    printf("%d", &myvar); wrong.
    It should be
    printf("%d", myvar);
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Machine Learning with Lego Mindstorms
    By DavidP in forum A Brief History of
    Replies: 14
    Last Post: 01-30-2009, 02:34 PM
  2. Is learning C/C++ worth it?
    By C/C++ Learner in forum A Brief History of
    Replies: 44
    Last Post: 11-05-2008, 03:55 PM
  3. Best Approach for Learning
    By UCnLA in forum C Programming
    Replies: 5
    Last Post: 03-21-2008, 02:35 AM
  4. Help getting started :(
    By blackocellaris in forum C Programming
    Replies: 4
    Last Post: 11-05-2006, 06:50 PM
  5. Need help getting started
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2001, 11:08 PM

Tags for this Thread