Q&A for How to Learn to Program in C

Return to Full Article

Search
Add New Question
  • Question
    How can I get started in learning and writing in C++?
    Tyrone Showers
    Technologist
    Tyrone Showers is a Technologist and the Co-owner of Taliferro Group, an IT consulting company based in Seattle, Washington. With over 35 years of professional experience, he specializes in API Design, e-Commerce, Operational Efficiency, and website development. He has a B.S. in Computer Science from DeVry Institute of Technology.
    Technologist
    Expert Answer
    Embarking on learning C++ involves grasping fundamental programming concepts such as variables, data types, loops, and conditions—the foundational elements applicable to any programming language, including C++. Acquiring a C++ compiler, like Microsoft Visual C++ for Windows or Xcode for macOS, is essential. After setting up the compiler, beginners typically start with basic programs, like the classic "Hello, World!" script, to comprehend the writing, compiling, and execution process. Numerous online resources facilitate C++ learning, and advanced development environments like Visual Studio expedite the learning curve. Persistence is crucial; write small programs, address personal curiosities, and gradually delve into problem-solving to deepen your understanding of C++. Seeking assistance from online forums and communities when faced with challenges is encouraged. Mastery of C++ places you among an elite group, and familiarity with design patterns and anti-patterns enhances coding proficiency.
  • Question
    What can I do if I don't understand any of this?
    Community Answer
    Learn a simpler language such as Python to understand the basics of programming before you start trying to learn C.
  • Question
    I understand the logic of programming, but I am having trouble with the syntax. How do I resolve this?
    Community Answer
    The only way is to keep practicing by writing lots of example programs of your own.
  • Question
    How do I create a program that receives a value, computes the square root of that value using a procedure function within the math.h library, and displays the square root as the output?
    Living Concrete
    Top Answerer
    Use scanf() to have the user type in a value to your program. Store that value in a variable. Use the sqrt() function on that variable and use printf() to display the value.
  • Question
    Is there an easy method to learn coding?
    Community Answer
    C isn't a very beginner friendly language to learn. If I were you, I would start out by learning Python, which is a versatile, easy to use language. One of the best sites to learn it on is codecademy.com which is free, with a premium option that provides interactive lessons.
  • Question
    I have been trying to learn C for a long time now, but I always blank out on what pointers or arrays do. What do I do?
    Living Concrete
    Top Answerer
    Pointers and arrays (especially pointers) are by far the most headache-inducing features of C. Try not to focus on memorizing specific details about these features. Instead, focus on memorizing general information, such as when to use pointers/arrays, what they do, etc. Find good documentation that describes specific information such as operators, bookmark it, and then pull it out when you need to program using those features.
  • Question
    What are some programs that I can create with the C programming language?
    Community Answer
    You can create lots of programs, from compilers to interpreters to web servers. The possibilities are almost limitless!
  • Question
    What if you cannot think of a problem that programming can solve or do not fit the mold of programmer?
    Community Answer
    Here is a simple problem: Given the interest rate, and the number of compounding periods, compute the interest earned.
  • Question
    I am new to coding. Which language should I learn first, Python or C?
    Community Answer
    If you're new, then I'd recommend C. The commands in it are much easier to understand and it works as an introduction to programming.
Ask a Question

      Return to Full Article