What Kind of Reality Check Do I Need Quiz
Q&A for How to Learn to Program in C
Coming soon
Search
-
QuestionHow can I get started in learning and writing in C++?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.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.
-
QuestionWhat can I do if I don't understand any of this?Community AnswerLearn a simpler language such as Python to understand the basics of programming before you start trying to learn C.
-
QuestionI understand the logic of programming, but I am having trouble with the syntax. How do I resolve this?Community AnswerThe only way is to keep practicing by writing lots of example programs of your own.
-
QuestionHow 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 ConcreteTop AnswererUse 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.
-
QuestionIs there an easy method to learn coding?Community AnswerC 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.
-
QuestionI 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 ConcreteTop AnswererPointers 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.
-
QuestionWhat are some programs that I can create with the C programming language?Community AnswerYou can create lots of programs, from compilers to interpreters to web servers. The possibilities are almost limitless!
-
QuestionWhat if you cannot think of a problem that programming can solve or do not fit the mold of programmer?Community AnswerHere is a simple problem: Given the interest rate, and the number of compounding periods, compute the interest earned.
-
QuestionI am new to coding. Which language should I learn first, Python or C?Community AnswerIf 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
200 characters left
Include your email address to get a message when this question is answered.
Submit