Recursion is the process of repeating an act in a self-similar way. It is highly used in programming for it’s ability to break down problems. To understand the term Recursion more let’s break it down using an Example:
float _pow_recursion(float x, float y)
if (y == 0)
if (y < 0)
return (_pow_recursion(x, y + 1) / x);
return (_pow_recursion(x, y - 1) * x);
The given algorithm calculates a number
x taken to the power of
x = 3and
y = 3.
The second line checks to see if
According to Statista, 4.66 billion people were active internet users as of October 2020, encompassing 59% of the global population and i’m sure that number will grow since we rely on the internet for just about pretty much everything: from checking emails, ordering food and clothes, calling Uber to investing and making some extra money on the side. the best thing about the internet is the fact that it’s so easy to use yet as a software engineer student I’m fascinated by the complexity of the behind the screens interactions.
In this article i will try to simplify what goes…
Living in the 21st century, Our planet has more connected devices than people. The Internet of things is transforming the way “we” as humans, businesses and governments, interact with the rest of the connected world, we are becoming closer we can have friends with all around the world, talk to them and even see them daily without having to travel the world, with one click we can be wherever we want whenever we want. So what is exactly Iot is it a good or dangerous thing and why is it so important?
The internet of things is simply the billion…
Machine Learning, Artificial intelligence (AI) and Deep Learning are taking the world by storm, dominating conversations about how machines can replace humans by providing a competitive advantage to businesses. The World is currently preparing to enter the fourth industrial revolution — the rise of the “intelligent machine.” At the heart of this revolution is Artificial Intelligence (AI), Mimicking human cognitive functions like problem-solving, learning and decision making using algorithms. From speed to efficiency, AI offers an abundance of benefits. Numerous sectors, including healthcare, automotive, defence and retail have already witnessed the game-changing impact of AI. Machine learning is a subset…
Lately I've been having so much fun learning Python. Compared to the C language Python is way easier to learn and this comes as a result of Guido Van Rossum’s concept of creating a programming language that’s “first-class everything” What it means that all the functions, classes, modules, methods and data types all have equal status.
And pretty much that’s why everything in Python is almost a class. What is a class you might ask? a class is a indented block of statements that contains attributes, properties, methods… an be used just like the built-in data types like dict int…
To make life easier we use Functions, functions are blocks of code that can be re-used to gain time, it removes the need to rewrite code over and over again and this is where libraries comes in hand it makes functions reusable in multiples programs.
We came across ls in a previous article when we explained “ What happens when you type ls *.c”. However in this article we’re going to explain what really happens when you type ls- l.
ls is a Unix-related systems command that lists the contents of a directory. The
-l on the other hand is known as an option or flag. We can find multiple options for
ls, too many to list in fact, however the
l in particular will allow
ls to list the contents of a directory in “long format”. …
Static Libraries are a collection created using the archive (ar)program, To be exact it’s a collection of ordinary object files containing all symbols required by the main program to operate.
They permit users to link to programs without having the need to recompile a code, it saves recompilation time; however, static libraries are hardly used today, they aren’t as popular as they once used to be because of the advantages of the shared libraries. …
The C language is one of the number 10 best programming languages it’s actually number 8 according to Github Data. it is an imperative language that have to be compiled with a compiler like gcc to create an executable file. gcc stands for GNU Compiler Collection it allows engineers to have a better control over the compilation process since it accepts options and file names as arguments.
now, what really happens when you type $gcc main.c?
when you type this command it automatically runs 4 steps that helps translate our program language to the machine language by changing our source…