i++ vs ++i
Pre increment vs post increment

A thread 🧵
You have definitely used i++ to increment your loop variable inside a loop.

But what does this statement mean? We can also use ++i or i=i+1 to accomplish the same task.
🔸Pre-increment (++i)
Before assigning the value to the variable, the value is incremented by one.
Ex -
🔸Post-increment (i++)
After assigning the value to the variable, the value is incremented.
Ex -
📌Precedence
The precedence of postfix ++ is more than prefix ++ and their associativity is also different.
Associativity of prefix ++ is right to left and associativity of postfix ++ is left to right.
If you liked this, make sure to:

1. Follow me @meetjain74

2. Retweet the first tweet

3. Turn on the notifications to never miss these amazing tweets.

Thanks so much for getting to the end of the thread! Let me know your thoughts below

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Meet Jain🦅

Meet Jain🦅 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @meetjain74

28 Oct
Best Youtube channels to learn coding

A thread 🧵
🔸freeCodeCamp.org
It has tutorials for every programming language and also has complete data structures and algorithms course
youtube.com/c/Freecodecamp
🔸Programming with Mosh
Known for python, javascript and csharp tutorials
youtube.com/c/programmingw…
Read 11 tweets
26 Oct
Difference between Git and Github

A thread🧵
📌What is Version Control?
A version control system is like a save program for your project. By tracking and logging the changes you make to your file or file sets over time, a version control system gives you the power to review or even restore earlier versions.
🔸Git is a version control system that lets you manage and keep track of your source code history.
🔹GitHub is a cloud-based hosting service that lets you manage Git repositories.
Read 12 tweets
25 Oct
Object-Oriented Programming in Real Life

A thread 🧵
🔸Encapsulation-
A company

It can have several departments
-Production department
-HR department
-Marketing department
All these departments make up a company
🔸Inheritance-
Dogs

They can have the
-same color
-same size
-same name
But they are not the same dog
Read 8 tweets
23 Oct
Coding Terminology everyone should know 📘📙

A thread 🧵
🔸Algorithm: An algorithm is a set of instructions or rules designed to solve a definite problem

🔸Program: Program is an organized collection of instructions that perform a specific task

🔸Statement: Statement is a single line of code written legally in a programming language
🔸API: API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other

🔸Arguments: Argument or arg is a value that is passed into a command or a function
Read 24 tweets
22 Oct
HTTP Status Codes

A thread 🧵
🔸HTTP Status
Http response status codes indicate whether a specific http request has been successfully completed.

Http status codes are 3 digit numbers divided in categories.
🔸Category -

▪️ 1XX - Information responses
▪️ 2XX - Success responses
▪️ 3XX - Redirection responses
▪️ 4XX - Client error responses
▪️ 5XX - Server error responses
Read 11 tweets
26 Sep
Programming languages with their uses💥💥

A thread🧵
1⃣Python -
🔸Artificial Intelligence
🔸Machine Learning
🔸Data analytics
🔸Data visualization
🔸Web development using the frameworks - Django, Pyramid and flask
🔸Game development using python
🔸Python used in field of Search Engine Optimisation (SEO)
2⃣Javascript -
🔸Rich Interactive web development
🔸Mobile applications using React Native
🔸Game development using game engines as PhysicsJS, Pixi.js
🔸Creating web servers using node.js
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(