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.]

Do not submit any solution of the above exercises at here, if you want to contribute go to the appropriate exercise page.

Popularity of Programming Language
Worldwide, May 2022 compared to a year ago:

`
Rank Change Language Share Trend
1 Python 27.85 % -2.5 %
2 Java 17.86 % -0.1 %
3 Javascript 9.17 % +0.4 %
4 C# 7.62 % +0.7%
5 C/C++ 7.0 % +0.4 %
6 PHP 5.36 % -1.0 %
7 R 4.34 % +0.5 %
8 up arrow TypeScript 2.39 % +0.7 %
9 down arrow Objective-C 2.25 % +0.0 %
10 Swift 2.05 % +0.3 %
11 up arrow Matlab1.82% +0.2 %
12 down arrow Kotlin 1.58 % -0.2 %
13 Go 1.38 % -0.1 %
14 up arrow Rust 1.15 % +0.3 %
15 Ruby 1.14 % +0.0%
16 down arrow VBA 1.04 % +0.0 %
17 up arrow Ada 0.81 % +0.2 %
18 up arrow Scala 0.7 % +0.2 %
19 down arrow Dart 0.66 % +0.0 %
20 Abap 0.66 % +0.1 %
21 down arrow Visual Basic 0.66 % +0.0%
22 Lua 0.5 % +0.0 %
23 up arrow Groovy 0.45 % +0.0 %
24 down arrow Perl 0.45 % +0.0 %
25 down arrow Julia 0.4 % +0.0 %
26 up arrow Cobol 0.28 % +0.0 %
27 Haskell 0.28 % +0.0 %
28 Delphi/Pascal 0.14 % +0.0 %

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

TIOBE Index for May 2022

May 2022 May 2021 Change Programming Language Ratings Change
1 2 up arrow Python 12.74% +0.86%
2 1 down arrow C 15.59% -1.80%
3 3 Java 10.99% -0.74%
4 4 C++ 8.83% +1.01%
5 5 C# 6.39% +1.98%
6 6 Visual Basic 5.86% +1.85%
7 7 JavaScript 2.12% -0.33%
8 8 Assembly language 1.92% -0.51%
9 10 up arrow SQL 1.87% +0.16%
10 9 down arrow PHP 1.52% -0.34%
11 17 up arrow Delphi/Object Pascal 1.42% +0.22%
12 18 up arrow Swift 1.23% -0.08%
13 13 up arrow R 1.22% -0.16%
14 16 up arrow Go 1.11% -0.11%
15 12 down arrow Classic Visual Basic 1.03% +0.38%
16 21 up arrow Objective-C 1.03% +0.24%
17 19 up arrow Perl 0.99% -0.05%
18 37 up arrow Lua 0.98% +0.64%
19 11 down arrow Ruby 0.86% -0.64%
20 15 down arrow MATLAB 0.82% -0.41%

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

List of Exercises with Solutions :



C Programming: Tips of the Day

What is the difference between printf() and puts() in C?

puts is simpler than printf but be aware that the former automatically appends a newline. If that's not what you want, you can fputs your string to stdout or use printf.

Ref :https://bit.ly/3f2fwcH