Skip to content

C was developed in the early 1970s by Dennis Ritchie at Bell Labs. It was initially created to develop the Unix operating system and has since become one of the most widely used programming languages in the world. C has influenced many other programming languages, including C++, Java, and Python.

License

Notifications You must be signed in to change notification settings

FearlessFrench/c-programming-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Programming Project

About

C is a general-purpose programming language created by Dennis Ritchie in 1972 at Bell Laboratories. It was primarily developed as a system programming language to write the UNIX operating system. Despite being an older language, C remains highly popular due to its simplicity, flexibility, and efficiency.

Learning C provides a strong foundation for understanding other programming languages and computer science concepts. Many modern languages borrow syntax and features from C, making it easier to learn them if you have a background in C. Additionally, C helps in understanding the underlying architecture of operating systems, such as memory management and pointers.

Suou Yuki Discussing


Table of Contents

Folder Description
01_variables Introduction to declaring and using variables in C.
02_format_specifiers Examples of using format specifiers for input and output.
03_arithmetic_operators Demonstrates basic arithmetic operations.
04_user_input How to take and handle user input from the console.
05_shopping_cart_program A simple program simulating a shopping cart.
06_mad_libs_game A classic text-based game using string manipulation.
07_math_functions A look at various mathematical functions available in the <math.h> library.
08_circle_calculator_program Calculates the circumference and area of a circle.
09_compound_interest_calculator Calculates compound interest over a period of time.
10_if_statements Basic conditional logic using if statements.
11_weight_converter A program to convert weight between different units.
12_temperature_program A program to convert temperatures between Celsius and Fahrenheit.
13_switches Demonstrates the use of switch statements for conditional logic.
14_nested_if_statements Examples of if statements within other if statements.
15_calculator A basic command-line calculator program.
16_logical_operators Examples of &&, `
17_functions Introduction to creating and calling functions.
18_return How to use the return statement in functions.
19_variable_scope Understanding local and global variable scope.
20_function_prototypes An explanation of function prototypes and why they are important.
21_while_loops How to use while loops for repetition.
22_for_loops How to use for loops for iteration.
23_break_continue Using break and continue to control loop flow.
24_nested_loops Examples of loops within other loops.
25_random_numbers Generating and using random numbers.
26_number_guessing_game A simple game where the user guesses a random number.
27_rock_paper_scissors A game of Rock, Paper, Scissors against the computer.
28_banking_program A simple program simulating basic banking transactions.
29_arrays Introduction to one-dimensional arrays.
30_arrays_and_user_input Reading user input into an array.
31_2D_arrays Working with two-dimensional arrays.
32_arrays_of_strings Using arrays to store multiple strings.
33_quiz_game A text-based quiz game.
34_ternary_operator An introduction to the ternary operator (?:).
35_typedef An explanation of typedef for creating aliases.
36_enums Using enum to define a set of named integer constants.
37_structs Introduction to structs for grouping related data.
38_arrays_of_structs Demonstrates how to create and use arrays of structures.
39_pointers A deep dive into pointers and memory addresses.
40_write_files How to create and write to files.
41_read_files How to read from existing files.
42_malloc Dynamic memory allocation with malloc.
43_calloc Dynamic memory allocation with calloc.
44_realloc Resizing dynamically allocated memory with realloc.
45_digital_clock A digital clock program.

Key Features of C

  • General Purpose and Portable: C can be used for a wide range of applications and can run on various platforms.

  • Low-level Memory Access: C allows direct manipulation of memory using pointers, which is crucial for system programming.

  • Fast Speed: C is known for its performance, making it suitable for developing operating systems, compilers, and other performance-critical applications.

  • Clean Syntax: The syntax of C is straightforward and has influenced many other programming languages like Java, C++, and Python.


Getting Started

To compile and run any of these projects, you'll need a C compiler like GCC.

  1. Clone the repository to your local machine:

    git clone [https://github.com/your-username/your-repository-name.git](https://github.com/your-username/your-repository-name.git) 
  2. Navigate to a specific project folder:

    cd your-repository-name/01_variables 
  3. Compile the file:

    gcc your_file_name.c -o your_program_name 
  4. Run the executable:

    ./your_program_name 

Contributing

Feel free to fork the repository and contribute your own C projects or improvements!


License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

About

C was developed in the early 1970s by Dennis Ritchie at Bell Labs. It was initially created to develop the Unix operating system and has since become one of the most widely used programming languages in the world. C has influenced many other programming languages, including C++, Java, and Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •