C is one of the oldest and most powerful programming language that was first developed in the 1970s by Dennis Ritchie. However, if C programming is mastered, learning other programming languages will be easy. This article will help you to start learning C programming, by using the compiler Turbo C++ IDE.

Steps

  1. 1
    Download Turbo C++ IDE for your operating system.
  2. 2
    Once you have got yourself the Turbo C++ compiler, learn about the #include, printf (Printf is used to print a message onto the console) and scanf (Scanf is used to scan a message from the console to the memory) functions.
    Advertisement
  3. 3
    Create a basic Hello World program and run it. Congratulate yourself, you're starting to learn C programming in Turbo C++ IDE!
  4. 4
    Remember, C is a High Level Language (HLL). It is case sensitive, modular and structured.
  5. 5
  6. 6
    Learn about variables. Variables are names given to certain memory blocks where the program will store certain values. To use a variable, the programmer will have to declare it first.
  7. 7
    Datatype : These indicate the type of value represented by certain variable. Given below are the 4 most common and important data types and on the right hand side is their format-specifier.
    • int --> %d
    • float --> %f
    • char --> %c
    • double --> %f (Yes, float & double have the same format specifier)
    • Strings are a part of char but the format specifier for strings is %s
  8. 8
    Learn about Arithmetic operators, logical operators, increment/ decrement operators, conditional operator, control flow structure (if-else, if statement, nested if) and looping (while, do-while, for).
  9. 9
    Learn about arrays, sorting.
  10. 10
    Learn about the ASCII (American Standard Code for Information Interchange). ASCII is used occasionally in C programming.
  11. 11
    Learn about pointers.
  12. 12
    Start with basic and small programs and then move on to more complicated ones.
  13. 13
    Get enrolled with certain courses to improve your command over C programming. Read books related to C programming.
    • Remember, you cannot master any language without determination and hard work.
  14. Advertisement

Community Q&A

  • Question
    Is C++ case-sensitive?
    Denneisk
    Denneisk
    Top Answerer
    Letters are case-sensitive in C++, meaning that "main" and "Main" are two completely different things. A good tip to remember is that most (if not all) functions start with a lower case.
  • Question
    Are there any errors in this Turbo C++ code: scanf("%d , andValue2)?
    Community Answer
    Community Answer
    Yes, there is an error. You can only use ampersands in this situation, so instead you should have scanf("%d", &Value2).
  • Question
    Which software is helpful for C?
    Community Answer
    Community Answer
    Codeblock or Visual Studio Community 2015 (free) are helpful.
Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 16 people, some anonymous, worked to edit and improve it over time. This article has been viewed 203,518 times.
How helpful is this?
Co-authors: 16
Updated: August 4, 2017
Views: 203,518
Advertisement