Skip to content

Classics: (C/C++) ~ This Repository Contains All of My C & C++ Programs. Hence, An Old School Repo. All Programs Have Categorized for Reference.

License

Notifications You must be signed in to change notification settings

offensive-vk/Classics

What is C ?

C is a general-purpose, low level computer programming language. It was created in the 1970s by Dennis Ritchie, and remains very widely used and most influential. C is an imperative procedural language, supporting structured programming, lexical variable scope, and recursion, with a static type system. It was designed to be compiled to provide low-level access to memory and language constructs that map efficiently to machine instructions.

  • Paradigm - Multi-paradigm: imperative (procedural), structured
  • Designed by Dennis Ritchie
  • First appeared - 1972; (50+ years ago)
  • Typing discipline - Static, weak, manifest, nominal
  • OS - Cross-platform
  • Filename extensions .c, .h
  • Read More at Wikipedia

What is C++ ?

C++ is a general-purpose, high level, object based, statically typed programming language developed as an extension of the C programming language. C++ was designed with systems programming and embedded, resource-constrained software and large systems in mind, with performance, efficiency, and flexibility of use as its design highlights.

  • Paradigms - Multi-paradigm: procedural, imperative, functional, object-oriented, generic, modular
  • Designed by Bjarne Stroustrup
  • First appeared in 1985; (39 years ago)
  • Typing discipline - Static, strong, nominative, partially inferred
  • OS - Cross-platform
  • Filename extensions - .c, .cc, .cpp, .cxx, .c++, .h, .H, .hh, .hpp, .hxx, .h++ .cppm, .ixx.
  • Read More at Wikipedia

Classics - C and C++ Programs

  • C/C++ both are awesome programming languages. Yet Powerful also.
  • You can find Contribution Guidelines here and Security Guidelines here.
  • This Repository Contains All of My Best C & C++ Programs.
  • Trick - Every C Program is also a Valid C++ Program.
  • (i.e You Can Save Your C Source Code with .cpp extension.)
  • Enjoy ! You can try Shell Scripting too. Try Now >

Sample Program

#include <iostream>
int main(int argc, char const *argv[]) {
    int i = 0;
    while (i < 1000000000)
    {
        i++;
    }
    std::cout << "Hello All, C++ is Easy. !!" << std::endl;
    std::cout << i << std::endl;
    return 0;
}

To Compile any .cpp | .cxx | .c++ file

$ g++ filename.cpp -o filename

To Compile any .c program

$ gcc filename.c -o filename

You are allowed to copy and implement these programs freely.

Happy Coding - offensive-vk


© Vedansh 2020 - Present
Licensed under GNU General Public License

Thanks for visiting :)

About

Classics: (C/C++) ~ This Repository Contains All of My C & C++ Programs. Hence, An Old School Repo. All Programs Have Categorized for Reference.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages