Open In App

C Fundamental Practice Problems

Last Updated : 08 Apr, 2025
Summarize
Comments
Improve
Suggest changes
Share
Like Article
Like
Report

Fundamentals concepts teach you the absolute basics of the programming. It is the bare minimum that you should know about the programming language to create basic programs. So, it is very important to have good understanding of the fundamentals to have strong foundation

Solving practice problems is the best way to improve your understanding. This article helps learners master the basic concepts of C such as variables, data types, operators input/output, etc.

Easy

The easy fundamental problems consist of problems that demonstrate the basic concept in the programming language such as printing some text, play with variables and values, getting familiar with data types and output formatting, etc.

Medium

The medium problems consist of simple programs that does some useful work such as finding odd even, larger number, finding leap year, etc. They mainly include the applications of control statements.

Prerequisite

You should have a good knowledge of fundamental concepts of C programming listed below:

  • Variables
  • Data Types
  • Input / Output
  • Format Specifiers
  • Operators
  • Conditional Statements
  • Loops

If you have any confusion regarding these topics, you can check out our C Tutorial for revision.

How to solve practice problems?

Each of the above link will take you to the practice portal where the problem statement tells you all the required information about the problem, and you have to write the solution in the code editor.

Code-editor
Screenshot of Code Editor

Once your solution is complete, you can check it for example test case using the compile and run button at the bottom right of the page.

code-editor-controls
Editor Controls

If you are sure of your solution, press the submit button. The GfG's compiler will run your solution for a variety of test cases and if all these cases are passed, you solution will be accepted.

Your own custom cases can also be checked before submission by using Custom Input button but keep in mind to follow the program's input layout.


Article Tags :

Similar Reads