
C Programming Exercises, Practice, Solution
What is C Programming Language?
C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations.
C was originally developed by Dennis Ritchie between 1969 and 1973 at Bell Labs, and used to re-implement the Unix operating system. It has since become one of the most widely used programming languages of all time, with C compilers from various vendors available for the majority of existing computer architectures and operating systems.
The best way we learn anything is by practice and exercise questions. We have started this section for those (beginner to intermediate) who are familiar with C programming.
Hope, these exercises help you to improve your C programming coding skills. Currently, following sections are available, we are working hard to add more exercises .... Happy Coding!
List of C Programming Exercises :
- Basic Declarations and Expressions [ 52 Exercises with Solution ]
- Variable Type [ 18 Exercises with Solution ]
- Input, Output [ 10 Exercises with Solution ]
- Conditional Statement [ 19 Exercises with Solution ]
- For Loop [ 59 Exercises with Solution ]
- Search and Sorting [ 9 Exercises with Solution ]
- Array [ 31 Exercises with Solution ]
- Pointer [ 22 Exercises with Solution ]
- Linked List [ 29 Exercises with Solution ]
- Numbers [ 37 Exercises with Solution ]
- String [ 31 Exercises with Solution ]
- Date Time [ 10 Exercises with Solution ]
- Function [ 11 Exercises with Solution ]
- Recursion [ 21 Exercises with Solution ]
- File Handling [ 15 Exercises with Solution ]
- More to Come !
[ Want to contribute to C exercises? Send your code (attached with a .zip file) to us at w3resource[at]yahoo[dot]com. Please avoid copyrighted materials.]
Popularity of Programming Language Worldwide, Mar 2018 compared to a year ago:
Rank | Change | Language | Share | Trend |
---|---|---|---|---|
1 | Java | 22.62 % | -0.8 % | |
2 | Python | 22.05 % | +5.2 % | |
3 | ![]() |
Javascript | 8.56 % | +0.2 % |
4 | ![]() |
PHP | 8.22 % | -1.8 % |
5 | ![]() |
C# | 7.95 % | -0.7 % |
6 | C | 6.38 % | -1.1 % | |
7 | ![]() |
R | 4.26 % | +0.4 % |
8 | ![]() |
Objective-C | 3.7 | -1.0 % |
9 | Swift | 2.92 % | -0.6% | |
10 | Matlab | 2.31 % | -0.4 % | |
11 | Ruby | 1.7 % | -0.4 % | |
12 | ![]() |
TypeScript | 1.58 % | +0.5 % |
13 | VBA | 1.39% | +0.0 % | |
14 | ![]() |
Visual Basic | 1.27 % | -0.3 % |
15 | ![]() |
Scala | 1.2 % | -0.0 % |
16 | ![]() |
Kotlin | 0.92 % | +0.8 % |
17 | Go | 0.84 % | +0.3 % | |
18 | ![]() |
Perl | 0.78 % | -0.1 % |
19 | ![]() |
lua | 0.37 % | -0.2 % |
20 | ![]() |
Rust | 0.36 % | +0.0 % |
21 | ![]() |
Haskell | 0.31 % | -0.0 % |
22 | ![]() |
Delphi | 0.29% | -0.1 % |
Source : http://pypl.github.io/PYPL.html
TIOBE Index for April 2018
Apr 2018 | Apr 2017 | Change | Programming Language | Ratings | Change |
---|---|---|---|---|---|
1 | 1 | Java | 15.777% | +0.21% | |
2 | 2 | C | 13.589% | +6.62% | |
3 | 3 | C++ | 7.218% | +2.66% | |
4 | 5 | ![]() |
Python | 5.803% | +2.35% |
5 | 4 | ![]() |
C# | 5.265% | +1.69% |
6 | 7 | ![]() |
Visual Basic .NET | 4.947% | +1.70% |
7 | 6 | ![]() |
PHP | 4.218% | +0.84% |
8 | 8 | JavaScript | 3.492% | +0.64% | |
9 | - | ![]() |
SQL | 2.650% | +2.65% |
10 | 11 | ![]() |
Ruby | 2.018% | -0.29% |
11 | 9 | ![]() |
Delphi/Object Pascal | 1.961% | -0.86% |
12 | 15 | ![]() |
R | 1.806% | -0.33% |
13 | 16 | ![]() |
Visual Basic | 1.798% | -0.26% |
14 | 13 | ![]() |
Assembly language | 1.655% | -0.51% |
15 | 12 | ![]() |
Swift | 1.534% | -0.75% |
16 | 10 | ![]() |
Perl | 1.527% | -0.89% |
17 | 17 | MATLAB | 1.457% | -0.59% | |
18 | 14 | ![]() |
Objective-C | 1.250% | -0.91% |
19 | 18 | ![]() |
Go | 1.180% | -0.79% |
20 | 20 | PL/SQL | 1.173% | -0.45% |
Source : https://www.tiobe.com/tiobe-index/
List of Exercises with Solutions :
- HTML CSS Exercises, Practice, Solution
- JavaScript Exercises, Practice, Solution
- jQuery Exercises, Practice, Solution
- jQuery-UI Exercises, Practice, Solution
- CoffeeScript Exercises, Practice, Solution
- Twitter Bootstrap Exercises, Practice, Solution
- C Programming Exercises, Practice, Solution
- C# Sharp Programming Exercises, Practice, Solution
- PHP Exercises, Practice, Solution
- Python Exercises, Practice, Solution
- Java Exercises, Practice, Solution
- SQL Exercises, Practice, Solution
- MySQL Exercises, Practice, Solution
- PostgreSQL Exercises, Practice, Solution
- SQLite Exercises, Practice, Solution
- MongoDB Exercises, Practice, Solution
- Euler Project