C Fundamental Practice Problems
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.
- Print GeeksforGeeks
- Global Variable
- Swap the Numbers
- Convert double to int
- Input Integer
- Print with Space
- Print without Space
- Print with New Line
- Print with Separator
- Be Precise in C
- Print GeeksforGeeks with Quotes
- Last Digit of a number
- Compute a/b
- Compare Two Numbers
- Find if +ve, -ve or 0
- Big Number
- Sum of N Numbers
- Multiplication Table
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.
- AP Term
- GP Term
- Even Odd Game
- Greatest of Three
- Leap Year
- FizzBuzz
- Calculator
- First Digit of a Number
- Count Digits
- Days Before n Days
- Prime Factorization
- Next Prime Number
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.

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.

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.