Giter Site home page Giter Site logo

alx-low_level_programming's Introduction

C_programming

C is a general-purpose procedural programming language that provides low-level access to system resources and hardware and can be used for system programming, embedded systems, and software development. It has key unique features such as pointers that can directly manipulates memory and preprocessor directives, which allow programmers to modify the source code before it is compiled.

Table Contents
1. Malloc
2. Pointers
3. Function Pointers
4. Static Libraries
5. Command Line Arguments
6. C Preprocessor
7. Variadic Functions
8. Structures and TypeDef
9. File I/O

Betty linter

Used Betty Linter to check for syntax errors noted indentation resulted in errors - (indentation is not recognized by compiler however indentation is important for readability as well as to comply with ASCI Standards)

C Compiler

  • Scripts written are aimed at key basic functions on running GCC compiler. C compilation process is explained here

  • You can find a list of different compilers here

  • GNU man gcc flags can be found here

  • Make code executable with gcc on ubuntu

foo@bar:~ gcc -Wall -pedantic -Werror -Wextra -std=gnu89 main.c c-file.c -o exec_file_name

Format Specifiers in C

Format specifiers define the type of data to be printed on standard output. More info here

Putchar

putchar is a function in the C programming language that writes a single character to the standard output stream, stdout. Its prototype is as follows:

int putchar (int character)

The character to be printed is fed into the function as an argument, and if the writing is successful, the argument character is returned.

Print long int using _putchar requires to have recursion to be add those numbers to string as shown here. Excercises that used this is > 5-more_numbers.c

alx-low_level_programming's People

Contributors

mandelakibiriti avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.