w3resource

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, Jan 2021 compared to a year ago:

Rank Change Language Share Trend
1 Python 30.44 % +1.2 %
2 Java 16.76 % -2.0 %
3 Javascript 8.44 % +0.3 %
4 C# 6.53 % -0.7%
5 up arrow C/C++ 6.33 % +0.3 %
6 down arrow PHP 6.05 % -0.2 %
7 R 3.87 % +0.1 %
8 Objective-C 3.71 % +1.2 %
9 Swift 2.14 % -0.3 %
10 TypeScript 1.78 % -0.0 %
11 Matlab 1.74 % -0.1 %
12   Kotlin 1.7 % +0.0 %
13 up arrow Go 1.33 % +0.1 %
14 down arrow VBA 1.2 % -0.2 %
15 down arrow Ruby 1.12 % -0.2 %
16 up arrow Rust 1.03 % +0.3 %
17 down arrow Scala 0.72 % -0.3 %
18 down arrow Visual Basic 0.69 % -0.2 %
19 up arrow Lua 0.64 % +0.3 %
20 up arrow Ada 0.63 % +0.3 %
21 up arrow Dart 0.56 % +0.1 %
22 down arrow Abap 0.51 % +0.0 %
23 down arrow Perl 0.48 % -0.1 %
24 up arrow Julia 0.38 % +0.1 %
25 down arrow Groovy 0.37 % -0.1 %
26 down arrow Cobol 0.35 % +0.0 %
27 down arrow Haskell 0.27 % -0.0 %
28 Delphi 0.26 % +0.0 %

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

TIOBE Index for January 2021

Jan 2021 Jan 2020 Change Programming Language Ratings Change
1 2 up arrow C 17.38% +1.61%
2 1 down arrow Java 11.96% -4.93%
3 3 Python 11.72% +2.01%
4 4 C++ 7.56% +1.99%
5 5 C# 3.95% -1.40%
6 6 Visual Basic 3.84% -1.44%
7 7 JavaScript 2.20% -0.25%
8 8 PHP 1.99% -0.41%
9 18 up arrow R 1.90% +1.10%
10 23 up arrow Groovy 1.84% +1.23%
11 15 up arrow Assembly language 1.64% +0.76%
12 10 down arrow SQL 1.61% +0.10%
13 9 down arrow Swift 1.43% -0.36%
14 14 Go 1.41% +0.51%
15 11 down arrow Ruby 1.30% +0.24%
16 20 up arrow MATLAB 1.15% +0.41%
17 19 up arrow Perl 1.02% +0.27%
18 13 down arrow Objective-C 1.00% +0.07%
19 12 down arrow Delphi/Object Pascal 0.79% -0.20%
20 16 down arrow Classic Visual Basic 0.79% -0.04%

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

List of Exercises with Solutions :