w3resource logo
c programming exercises

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 :

[ 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, Oct 2017 compared to a year ago:

Rank Change Language Share Trend
1 Java 22.2 % -0.9 %
2 Python 17.6 % +4.3 %
3 PHP 8.8 % +0.5 %
4 up arrow Javascript 8.0 % +0.5 %
5 down arrow C# 7.7 % -0.9 %
6 up arrow C++ 6.7 % -0.3 %
7 down arrow C 6.2 % -1.0 %
8 up arrow R 3.7 % +0.6 %
9 down arrow Objective-C 3.5 % -1.3%
10 Swift 3.0 % +0.0 %
11 Matlab 2.2 % -0.4 %
12 Ruby 1.7 % -0.4 %
13 up arrow VBA 1.5 % +0.0 %
14 up arrow TypeScript 1.4 % +0.4 %
15 down arrow Visual Basic 1.3 % -0.3 %
16 down arrow Scala 1.2 % +0.1 %
17 down arrow Perl 0.8 % -0.2 %
18 up arrow Kotlin 0.8 % +0.8 %
19 up arrow Go 0.6 % +0.2 %
20 down arrow lua 0.4 % -0.1 %
21 up arrow Delphi 0.3 % -0.1%
22 down arrow Haskell 0.3 % +0.0 %
23 down arrow Rust 0.3 % +0.0 %

Source : http://pypl.github.io/PYPL.html

TIOBE Index for October 2017

Jun 2017 Jun 2016 Change Programming Language Ratings Change
1 1 Java 12.431% -6.37%
2 2 C 8.374% -1.46%
3 3 C++ 5.007% -0.79%
4 4 C# 3.858% -0.51%
5 5 Python 3.803% +0.03%
6 6 JavaScript 3.010% +0.26%
7 7 PHP 2.790% +0.05%
8 8 Visual Basic .NET 2.735% +0.08%
9 11 up arrow Assembly language 2.374% +0.14%
10 13 up arrow Ruby 2.324% +0.32%
11 15 up arrow Delphi/Object Pascal 2.180 +0.31%
12 9 down arrow Perl 1.963% -0.53%
13 19 up arrow MATLAB 1.880% +0.26%
14 23 up arrow Scratch 1.891% +0.69%
15 18 down arrow R 1.684% -0.06%
16 12 down arrow Swift 1.668% -0.34%
17 10 down arrow Objective-C 1.513% -0.75%
18 14 down arrow Visual Basic 1.420% -0.57%
19 20 up arrow PL/SQL 1.408% -0.12%
20 16 down arrow Go 1.357% -0.45%

Source : https://www.tiobe.com/tiobe-index/

List of Exercises with Solutions :