<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-7658182824128885555</atom:id><lastBuildDate>Thu, 29 Aug 2024 17:40:30 +0000</lastBuildDate><category>Programming</category><category>C Programming</category><category>Cryptocurrency</category><category>Blockchain</category><category>C++ Programming</category><category>Computer</category><category>Computers Tips And Tricks</category><title>Meta Buddy</title><description>Your digital partner - Meta Buddy</description><link>https://metabuddy.blogspot.com/</link><managingEditor>noreply@blogger.com (Unknown)</managingEditor><generator>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7658182824128885555.post-2724738823667509458</guid><pubDate>Sun, 20 Mar 2022 05:11:00 +0000</pubDate><atom:updated>2022-03-19T22:11:43.861-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C Programming</category><category domain="http://www.blogger.com/atom/ns#">C++ Programming</category><category domain="http://www.blogger.com/atom/ns#">Programming</category><title>Difference between C and C++ programmming language.</title><description>&lt;a href="https://draft.blogger.com/#"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjasJ3bSsKN9-9HBahc_S1PwcO0VeA3YiHHGCTIJNyOjbW2e6TrOtMLWJDWgFaYeNXNvQjuZN9bqjXNbvw8hQ7eYZmUzZaQKS0gXTkeWvr0_TWj_wM_vSvVLHHovPn-wz_7TDFlo_zO1Zhv/s16000/Gk+Most+Imporant+Questions+%25284%2529.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Difference Between C and C ++ programming language.&lt;br /&gt;&lt;br /&gt;C Programming language &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;C&lt;/b&gt; was developed by &lt;b&gt;Dennis Ritchie&lt;/b&gt; between the year &lt;b&gt;1969&lt;/b&gt; and &lt;b&gt;1973&lt;/b&gt; at &lt;b&gt;AT&amp;amp;T Bell Labs&lt;/b&gt;. &lt;br /&gt;&lt;br /&gt;C is a subset of C++. C contains 32 keywords. C++ contains 63 keywords. &lt;br /&gt;&lt;br /&gt;For the development of code, C supports procedural programming. Functions in C are not defined inside structures. Namespace features are not present inside the C.Header file used by C is stdio.h. Virtual and friend functions are not supported by C. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;C ++ Programming language &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;C++&lt;/b&gt; was developed by &lt;b&gt;Bjarne Stroustrup&lt;/b&gt; in &lt;b&gt;1979&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;C++ is a superset of C . C++ is known as a hybrid language because C++ supports both procedural and object-oriented programming paradigms.C++ is an object-driven language. C++ focuses on data instead of focusing on method or procedure. C++ structures have access modifiers.C++ provides a new operator for memory allocation and a delete operator for memory de-allocation. Functions can be used inside a structure in C++. Namespace is used by C++, which avoids name collisions. &lt;br /&gt;&lt;br /&gt;C is a very simple language actually, lacking many features found in newer languages. With C, there is no hand-holding, and most things have to be done manually. The standard library is very limited by modern standards. C is quite close to the hardware, which is actually its best feature. Being simple and close to the hardware is probably the main reason for C's continued success and popularity. &lt;br /&gt;&lt;br /&gt;On the other hand, C++ is one of the more complex languages, which means it can take a long time to truly master. It evolved out of C, and therefore includes everything which was already in C. But, many C-style techniques are generally discouraged in C++. This combined with the fact that C++ is still evolving (C++11, 14) means that to master C++ you need to understand the history of the language and the advantages/disadvantages of different techniques. With C++ you can write high-performance, high-quality modular software. But there are many many pitfalls along the way, especially for those coming from a background of more forgiving languages (Java, C#, JavaScript, Python, etc.). &lt;br /&gt;&lt;br /&gt;Most people don't realize that C++ can often produce even faster natively-compiled software than plain C. This is because of the template system and the ability to do extra work at compile time (for example, plain C's qsort is usually much slower than C++'s std::sort because of function pointers [C] vs. inlining [C++]). On the plus side, if you really master C++ most other languages will seem like a piece of cake by comparison. &lt;br /&gt;&lt;br /&gt;C is a language invented between 1969–1973 along with the Unix OS, which was written in it. C++ was invented in 1979 and standardized in 1998, and it's basically a massive upgrade of C, but it's not C, it's something totally different altogether. Almost all code written in C will also compile perfectly as C++ code, since C++ is a strict superset of C, meaning it only adds features and doesn't remove or change anything (thus breaking compatibility). &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Some of the additions are: &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Classes, the main new feature. Basically structs with function members, inheritance, and access specifiers. In C++, structs are almost synonyms with classes, except they have public members and inheritance by default.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Namespaces, is also a big addition. In C, every function goes to a global namespace, which made name clashes common. Let's say you have included &amp;lt;unistd.h&amp;gt;: POSIX names are stupidly and dangerously generic, so you can't create a function called, for example, “open”.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Function overloading is also a big addition. C++ uses name mangling to store the function's name, which is used to differentiate functions of different parameter types.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Operator overloading, I wasn't kidding when I said it's massive, still a big addition, allows you to define custom behaviors for operations on classes. Syntax sugar, but welcome.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Lambdas (C++11 and up), an amendment for the fact neither C nor C++ have first-class functions. Basically, functions that can be defined inline, stored on a variable, passed around, and called.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Using statement, both a replacement for typedef and a way to use a namespace without typing its name all the time.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Constexpr variables and functions, are evaluated at compile-time, and can replace the preprocessor at times (but not always).&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;  &lt;br /&gt;&lt;b&gt;C and C++ are not the same there is a lot of difference between C and C++ languages. &lt;br /&gt;&lt;/b&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;C is a structural or procedural-oriented programming language but C++ is a partially object-oriented programming language.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;In C++, We can use STL(Standard Template Library) to implement most of the Algorithms and Data Structures but in C we have to manually code everything.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;In C++, there is a concept called the “Inline” function. The inline function execution is faster than the normal function. C doesn’t have the inline function concept.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;In C++, We have the “Vectors” dynamically grow-able array but that is not possible in the c programming language.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;We can implement all the C Programming concepts in C++ but vice versa is not possible.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;In C++ by using the friend function we can access the private members of the class but there is no concept of classes in C++.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;As C++ supports object-orientated programming we can implement Polymorphism, Inheritance, Abstraction, and Encapsulation but these are not possible in C language.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</description><link>https://metabuddy.blogspot.com/2022/03/difference-between-c-and-c-programmming.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjasJ3bSsKN9-9HBahc_S1PwcO0VeA3YiHHGCTIJNyOjbW2e6TrOtMLWJDWgFaYeNXNvQjuZN9bqjXNbvw8hQ7eYZmUzZaQKS0gXTkeWvr0_TWj_wM_vSvVLHHovPn-wz_7TDFlo_zO1Zhv/s72-c/Gk+Most+Imporant+Questions+%25284%2529.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7658182824128885555.post-127304492653498584</guid><pubDate>Fri, 18 Mar 2022 08:53:00 +0000</pubDate><atom:updated>2022-03-18T01:53:08.358-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Computers Tips And Tricks</category><category domain="http://www.blogger.com/atom/ns#">Programming</category><title>How to learn coding?</title><description>&lt;html lang="en"&gt;&lt;head&gt;	&lt;meta charset="utf-8"/&gt;	&lt;meta content="width=device-width, initial-scale=1.0" name="viewport"/&gt;	&lt;meta content="How to learn coding online and faster. Start learning programming language like java, python, c++, etc." name="description"/&gt;  	&lt;meta content="Coding, learn coding, code, programming, w3school, cprogramming, java, python, c++, android, kotlin, udemy, stack overflow, code academy, deepsingsane,digital scroller, digitalscroller.blogspot.com" name="keywords"/&gt; &lt;/head&gt;&lt;body&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="#" rel="nofollow" style="margin-left: 1em; margin-right: 1em; text-align: center;"&gt;&lt;img border="0" data-original-height="1170" data-original-width="2048" height="366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU_bk6a5hJN61bs2QvDr6Fm0bhx-bd66ABfah4p2QL5I8kDFW8Q2OaS8ujZhPnddqYO9wK8g3DciiXolqm21hdjwYUmMsiwME-3f5_R9QetnTqGgFXuiTWkfsK0awgXlZFZv7AL9R6XTY/w640-h366/Gk+Most+Imporant+Questions+%252813%2529.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b style="color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;If you are reading this post then you definitely come here to know how to learn coding in this post, I will share my personal experience about it, how to learn to code.&lt;/b&gt;&lt;/p&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; direction: ltr; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;&lt;b style="color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;Here are the steps&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;&lt;span style="background: none; font-weight: bold;"&gt;STEP 1:&lt;/span&gt;&lt;/p&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;&lt;span style="background: none;"&gt;You should first of all try to pick up a programming language and learn it and try to understand its basic syntax and semantics. for a better understanding of concepts take &lt;b&gt;C&lt;/b&gt;&lt;/span&gt;&lt;span style="background: none; font-weight: bold;"&gt;-language&amp;nbsp;&lt;/span&gt;&lt;span style="background: none;"&gt;as your first language!&lt;/span&gt;&lt;/p&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;&lt;span style="background: none;"&gt;learn all the basics of language step by step and master all the basic concepts&lt;/span&gt;&lt;/p&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;Here are some basic concepts&amp;nbsp;&lt;/p&gt;&lt;ul class="q-box" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; list-style-image: initial; list-style-position: initial; margin: 0px 2em 1em 0px; overflow-wrap: break-word; padding: 0px;"&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;data types(int,char,float ,double etc.&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;operators(assignment,bitwise,logical etc.)&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;control statements(while loop,for loop,switch,continue,goto etc.)&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;structures&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;arrays&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;input/output&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;file handling&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;function&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px; position: relative;"&gt;&lt;span style="background: none;"&gt;pointers&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;&lt;span style="background: none;"&gt;For learning languages, you can prefer many free online resources like&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;ul class="q-box" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; list-style-image: initial; list-style-position: initial; margin: 0px 2em 1em 0px; overflow-wrap: break-word; padding: 0px;"&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Youtube lectures of&amp;nbsp;&lt;/span&gt;&lt;span style="background: none; font-weight: bold;"&gt;mysirg.com, Code with harry,&amp;nbsp;&lt;/span&gt;&lt;span style="background: none;"&gt;and many more.&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;W3School&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Free Code Map&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Geeks for geeks&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Tutorial Points&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Code Academy&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Coding Chef&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Stack Overflow&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Github&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px; position: relative;"&gt;&lt;span style="background: none;"&gt;You can refer to &lt;b&gt;&lt;a href="https://www.udemy.com/" target="_blank"&gt;Udemy&lt;/a&gt;&lt;/b&gt;, &lt;b&gt;&lt;a href="https://www.coursera.org/in" target="_blank"&gt;Coursera&lt;/a&gt;&lt;/b&gt; for paid courses that have more content.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;&lt;span style="background: none; font-weight: bold;"&gt;STEP 2 :&lt;/span&gt;&lt;/p&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;&lt;span style="background: none;"&gt;After learning c language try to solve questions on different concepts like&lt;/span&gt;&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;&lt;b style="color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px;"&gt;1. Basic maths&lt;/b&gt;&lt;/h3&gt;&lt;ul class="q-box" style="background-color: white; box-sizing: border-box; color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 2em; overflow-wrap: break-word; padding: 0px; text-align: left;"&gt;&lt;li&gt;&lt;span style="background-color: initial;"&gt;Addition, subtraction, etc.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="background-color: initial;"&gt;Calculator, matrix manipulation, series,&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="background-color: initial;"&gt;Loop patterns,odd-even,sets,finding greatest number etc.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style="background-color: white; box-sizing: border-box; color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; text-align: left; word-break: break-word;"&gt;&lt;span style="background-color: initial;"&gt;2. Arrays, and function, pointers based program&lt;/span&gt;&lt;/h3&gt;&lt;ul class="q-box" style="background-color: white; box-sizing: border-box; color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 2em; overflow-wrap: break-word; padding: 0px; text-align: left;"&gt;&lt;li&gt;&lt;span face="-apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif" style="color: #282829; font-size: 15px;"&gt;Array manipulation(finding greatest,sorting,adding,etc)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Basic program using function(call by value/reference)&lt;/li&gt;&lt;li&gt;Pointers manipulation and structure using pointers and all the possible stuff.&lt;/li&gt;&lt;/ul&gt;&lt;h3 style="background-color: white; box-sizing: border-box; color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; text-align: left; word-break: break-word;"&gt;&lt;span style="background: none;"&gt;3. After you find yourself able to solve basic problems of programming of your own then try to learn&lt;/span&gt;&lt;/h3&gt;&lt;h4 style="background-color: white; box-sizing: border-box; color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; text-align: left; word-break: break-word;"&gt;&lt;span style="background: none;"&gt;&lt;b&gt;Data structures&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;&lt;ul class="q-box" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 2em; overflow-wrap: break-word; padding: 0px;"&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Arrays&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Linked lists&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Rees&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Hashing&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px; position: relative;"&gt;&lt;span style="background: none;"&gt;Stack/queue implementation&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style="background-color: white; box-sizing: border-box; color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; text-align: left; word-break: break-word;"&gt;&lt;span style="background: none;"&gt;Algorithms&lt;/span&gt;&lt;/h4&gt;&lt;ul class="q-box" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 2em; overflow-wrap: break-word; padding: 0px;"&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Time complexity&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Sorting techniques&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px 0px 0.7em; position: relative;"&gt;&lt;span style="background: none;"&gt;Dynamic programming&lt;/span&gt;&lt;/li&gt;&lt;li class="q-relative" style="box-sizing: border-box; margin: 0px 0px 0px 2em; padding: 0px; position: relative;"&gt;&lt;span style="background: none;"&gt;Backtracking&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style="background-color: white; box-sizing: border-box; color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; text-align: left; word-break: break-word;"&gt;&lt;span style="background: none;"&gt;4. Try to learn at least one or more object-oriented languages like c++, python, java.&lt;/span&gt;&lt;/h3&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;&lt;span style="background: none; font-weight: bold;"&gt;STEP 3.&lt;/span&gt;&lt;/p&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;&lt;span style="background: none;"&gt;If you find yourself comfortable in coding basics&amp;nbsp;&lt;/span&gt;&lt;span style="background: none;"&gt;then switch yourself to the world of&amp;nbsp;&lt;/span&gt;&lt;span style="background: none; font-weight: bold;"&gt;competitive programming&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: initial;"&gt;where your code and compete with masters/expert coders all over the world and try to take part in challenges held almost every week or month&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: initial;"&gt;there are many competitive programming sites.&lt;/span&gt;&lt;/p&gt;&lt;h3 style="background-color: white; box-sizing: border-box; color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; text-align: left; word-break: break-word;"&gt;&lt;span style="background: none;"&gt;Suggesting one of our best for you.&lt;/span&gt;&lt;/h3&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;&lt;/p&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;span style="background-color: transparent;"&gt;Hackerrank&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Codechef&lt;/li&gt;&lt;li&gt;Codeforces&lt;/li&gt;&lt;li&gt;HackerRank&lt;/li&gt;&lt;li&gt;CodeChef&lt;/li&gt;&lt;li&gt;Exercism.io&lt;/li&gt;&lt;li&gt;Codewars&lt;/li&gt;&lt;li&gt;LeetCode&lt;/li&gt;&lt;/ol&gt;&lt;h3 style="text-align: left;"&gt;Other suggestions we will provide are :&lt;/h3&gt; &lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Research by yourself&lt;/li&gt;&lt;li&gt;Read programming &amp;amp; coding books&lt;/li&gt;&lt;li&gt;Do experiments with whatever you have learned&lt;/li&gt;&lt;li&gt;Play coding games&lt;/li&gt;&lt;li&gt;Look for new strategies&lt;/li&gt;&lt;li&gt;Develop your own&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style="color: #282829; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; font-weight: bold;"&gt;Happy Coding&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class="q-text qu-display--block" style="background-color: white; box-sizing: border-box; color: #282829; direction: ltr; font-family: -apple-system, system-ui, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 15px; margin: 0px 0px 1em; overflow-wrap: anywhere; padding: 0px; word-break: break-word;"&gt;&lt;span style="background: none; font-weight: bold;"&gt;Thanks For reading &#128064;&lt;/span&gt;&lt;/p&gt; &lt;/body&gt;&lt;/html&gt;</description><link>https://metabuddy.blogspot.com/2022/03/how-to-learn-coding.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU_bk6a5hJN61bs2QvDr6Fm0bhx-bd66ABfah4p2QL5I8kDFW8Q2OaS8ujZhPnddqYO9wK8g3DciiXolqm21hdjwYUmMsiwME-3f5_R9QetnTqGgFXuiTWkfsK0awgXlZFZv7AL9R6XTY/s72-w640-h366-c/Gk+Most+Imporant+Questions+%252813%2529.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7658182824128885555.post-6905459576515851914</guid><pubDate>Fri, 18 Mar 2022 06:53:00 +0000</pubDate><atom:updated>2022-03-17T23:56:54.072-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Blockchain</category><category domain="http://www.blogger.com/atom/ns#">Cryptocurrency</category><title>What is a Blockchain?</title><description>&lt;html lang="en"&gt;&lt;head&gt;	&lt;meta charset="utf-8"/&gt;	&lt;meta content="width=device-width, initial-scale=1.0" name="viewport"/&gt;	&lt;meta content="Blockchains are incredibly popular nowadays, everyone is talking about it. You might be wondering why is it in trending these days." name="description"/&gt;  	&lt;meta content="crypto,cryptocurrency,cryptotrading,trading,cryptocoins,polygon crypto,ecash,polymath,ravencoin,Monero,blockFi,blocks,peer to peer, proof of work,smart contract,iota,blockchain,NFT,decentralized,coinswitch,trustwallet,wazirx,grow,coins,digital coin,safemoon,market capital,filecoin,NKN,mining,invest,trade,,wallet,bitcoin,mining,dogecoin,solana,cardano,polkadot,ripple,xrp,btc,eth,memecoin,exchange,buy,sell,polygon,litecoin,matic,legal,API,stock,share,currency" name="keywords"/&gt;    &lt;link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/css/all.min.css" rel="stylesheet"/&gt;  &lt;/head&gt;&lt;body&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkD-W8rs8_hJeaRmjSgocdiQn5UZMkazNoSOGff1nSAUv6LfXPUsUknEkkvXQLA-w93Nyq_7vGyTa6faAAFEptVL3mpCVwun92Z5HNHPQwOKBOilhvv39rWVsHUoB7pt7MVXLrPRUVjmE8/s1500/blockchain.webp" style="display: block; padding: 1em 0; text-align: left; "&gt;&lt;img alt="blockchain" border="0" width="100%" data-original-height="900" data-original-width="1500" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkD-W8rs8_hJeaRmjSgocdiQn5UZMkazNoSOGff1nSAUv6LfXPUsUknEkkvXQLA-w93Nyq_7vGyTa6faAAFEptVL3mpCVwun92Z5HNHPQwOKBOilhvv39rWVsHUoB7pt7MVXLrPRUVjmE8/s600/blockchain.webp"/&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Blockchains&amp;nbsp;&lt;/b&gt;are incredibly popular nowadays, everyone is talking about it. You might be wondering why is it in trending these days.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;h4 style="text-align: left;"&gt;To understand the logic, let's see the following questions :-&lt;/h4&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;What is a blockchain?&lt;/li&gt;&lt;li&gt;How does it work?&lt;/li&gt;&lt;li&gt;What problems it solves?&lt;/li&gt;&lt;li&gt;How it can be used?&lt;/li&gt;&lt;/ul&gt;Like the name indicates, a blockchain is a chain of blocks that contains information. This technique was originally described in 1991 by a group of researchers and was originally intended to timestamp digital documents so that it’s not possible to backdate them or to tamper with them. Almost like a notary. However, it went by mostly unused until it was adapted by &lt;b&gt;Satoshi Nakamoto&lt;/b&gt; in 2009 to create the digital cryptocurrency &lt;b&gt;Bitcoin&lt;/b&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A &lt;b&gt;blockchain &lt;/b&gt;is a distributed ledger that is completely open to anyone. They have an interesting property: once some data has been recorded inside a blockchain, it becomes very difficult to change it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h4 style="text-align: left;"&gt;How does it work?&lt;/h4&gt;Well, let’s take a closer look at a block.&lt;p style="line-height: 1.3125rem; margin: 0.875rem 0px;"&gt;&lt;span style="color: #1a1a1a;"&gt;&lt;span style="font-family: georgia; letter-spacing: 0.9px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="color: #1a1a1a; font-family: georgia;"&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="#" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" data-original-height="600" data-original-width="1050" height="183" src="https://blogger.googleusercontent.com/img/a/AVvXsEh1fbmM6oRqiS4ln2Jd3UBLmcPTOrbByfV46zu9z3ZazBZEFphhVPxBgzSVSOvbnPyHH2UwFnzwsDHf4J8RS850q-ecFeUywSl8UYr1SkhR9YuaGbd0kIND00Rj6NfVJnV80-V395DksViLhOINenJxb_yYS1SI-6pSwDRseHgNw-BmiTTKR5OfuRIsRA=s320" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Blocks&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;br /&gt;Each block contains some data, the hash of the block and the hash of the previous block.The data that is stored inside a block depends on the type of blockchain.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;The &lt;b&gt;Bitcoin blockchain &lt;/b&gt;for example stores the details about a transaction in here, such as the sender, receiver and amount of coins. A block also has a hash. You can compare a hash to a fingerprint. It identifies a block and all of its contents and it's always unique, just as a fingerprint. Once a block is created, it’s hash is being calculated. Changing something inside the block will cause the &lt;b&gt;hash &lt;/b&gt;to change. So in other words: hashes are very useful when you want to detect changes to blocks. If the fingerprint of a block changes, it no longer is the same block. The third element inside each block is the hash of the previous block.This effectively creates a chain of blocks and it’s this technique that makes a blockchain so secure.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;b&gt;Let's take an example.&lt;/b&gt;&lt;div&gt;&lt;span style="color: #1a1a1a; font-family: georgia;"&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="#" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" data-original-height="600" data-original-width="1050" height="183" src="https://blogger.googleusercontent.com/img/a/AVvXsEjDoh43BqwCsepBQlyOLnXEfMcj3VKc70EpbtBmRsy5t4H5YscA7WpwEtggsrlHpur89iDh0DWdP5Rzl5VvkQDR6c843GuzmHsMxc4UGRli6Rc_70egXqSAQerxLPaDnrwZWU9WD9HIBiEGD3YbQtyxsudVI88weZ0PqpCKpIHFCDsaKNJPydqmwJJrLw=s320" style="margin-left: auto; margin-right: auto;" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Three Blocks&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Here we have a chain of 3 blocks. As you can see, each block has a hash and the hash of the previous block. So block number 3 points to block number 2 and number 2 points to number 1.&lt;br /&gt;&lt;br /&gt;Now the first block is a bit special, it cannot point to previous blocks because it's the first one. We call this the genesis block.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now let's say that you tamper with the second block. This causes the hash of the block to change as well.&lt;br /&gt;&lt;br /&gt;&lt;p style="line-height: 1.3125rem; margin: 0.875rem 0px;"&gt;&lt;/p&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="#" style="margin-left: auto; margin-right: auto;"&gt;&lt;span style="font-family: georgia;"&gt;&lt;img alt="Blocks" border="0" data-original-height="600" data-original-width="1050" height="183" src="https://blogger.googleusercontent.com/img/a/AVvXsEgHxqBmkCAL9UMGRMcnRLoVIpjGlujegeUl1PF_eKLp_CvzYxhsPV2DXoG8rWwvjmi5YcDXngfUD-7bOVwSMfPwreKeC2Kn5nUR-E0uiHLnjvMIOzbQePHAlSTLqfnNlWDbYvySTPbJ6a944TkYsTRYx9oVqIJD2h0zgDppw883YUs_F9Hg6RPPCe134g=w320-h183" title="Blocks" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;span style="font-family: georgia;"&gt;Blocks&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;In turn that will make block 3 and all following blocks invalid because they no longer store a valid hash of the previous block. So changing a single block will make all following blocks invalid. But using hashes is not enough to prevent tampering.Computers these days are very fast and can calculate hundreds of thousands of hashes per second. You could effectively tamper with a block and recalculate all the hashes of other blocks to make your blockchain valid again.&lt;/div&gt;&lt;br /&gt;So to mitigate this, blockchains have something called proof-of-work. It's a mechanism that slows down the creation of new blocks.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;In Bitcoins case: it takes about 10 minutes to calculate the required &lt;b&gt;Proof-of-work&lt;/b&gt; and add a new block to the chain.&lt;p style="line-height: 1.3125rem; margin: 0.875rem 0px;"&gt;&lt;span style="color: #1a1a1a; font-family: georgia;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;span style="font-family: georgia; margin-left: auto; margin-right: auto;"&gt;&lt;a href="#"&gt;&lt;img border="0" data-original-height="600" data-original-width="1050" height="183" src="https://blogger.googleusercontent.com/img/a/AVvXsEiG6QmQGg3kn1X-BW5-auP0VTU7tchl9e6W2bOWjOdaIMk816uYg-Zp5ZtpKS-DdHu20LP0tEl9TYSy5gHWN1iKTWb9ipvfADFmhSpWdX0SJJc6U4jBKsLQu2JxPAeWLpLGVhdwAwHvVuVlVVoCpi3hfzOWVV8q90MvNukKV8d7VWO1a_UM3xeraER3fA=s320" width="320" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;a href="https://www.google.com/search?q=proof+of+work&amp;amp;rlz=1C1CHBD_enIN966IN966&amp;amp;oq=proof+of+work&amp;amp;aqs=chrome..69i57j0i271.2737j0j9&amp;amp;sourceid=chrome&amp;amp;ie=UTF-8"&gt;&lt;span style="font-family: georgia;"&gt;Proof of work&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="text-align: left;"&gt;This mechanism makes it very hard to tamper with the blocks, because if you tamper with 1 block, you'll need to recalculate the proof-of-work for all the following blocks. So the security of a blockchain comes from its creative use of hashing and the &lt;b&gt;Proof-of-work (PoW)&lt;/b&gt;&amp;nbsp;mechanism.&lt;/p&gt;&lt;br /&gt;But there is one more way that blockchains secure themselves and that's by being distributed.&lt;p style="line-height: 1.3125rem; margin: 0.875rem 0px;"&gt;&lt;span style="color: #1a1a1a; font-family: georgia;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;span style="font-family: georgia; margin-left: auto; margin-right: auto;"&gt;&lt;a href="#"&gt;&lt;img alt="peer to peer" border="0" data-original-height="600" data-original-width="1050" height="183" src="https://blogger.googleusercontent.com/img/a/AVvXsEi3mYHVBWhW5eZY7abS4ChR7YcwJ68EDhQPLDs7wq8lPannyMkPlXk4KT7GHaQy3fQ7Pzwwm68dOFHz5GwIGuYS0Yd1zGg26Q-T0dhqkLlv0KnuYR9TU9ZTV-e1RxRZb9SJiiUgIUWF9KVHP_1e6T52pGAU12ZznFFL_K2seoinIqR4wQlFmX_pacBt1g=w320-h183" title="Peer to Peer" width="320" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;a href="https://www.google.com/search?rlz=1C1CHBD_enIN966IN966&amp;amp;sxsrf=AOaemvI6br0s3etY_Mp7XGFsLDFHJb4Xeg:1631083476919&amp;amp;q=peer+to+peer&amp;amp;spell=1&amp;amp;sa=X&amp;amp;ved=2ahUKEwiu9vW54-7yAhXIF3IKHdEMDHMQBSgAegQIARAx&amp;amp;biw=1366&amp;amp;bih=625"&gt;&lt;span style="font-family: georgia;"&gt;Peer to Peer&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="text-align:left;"&gt;Instead of using a central entity to manage the chain, blockchains use a &lt;b&gt;Peer-to-Peer&amp;nbsp;&lt;/b&gt;network and anyone is allowed to join. When someone joins this &lt;b&gt;network&lt;/b&gt;, he gets the full copy of the blockchain. The &lt;b&gt;node &lt;/b&gt;can use this to verify that everything is still in order. Now let's see what happens when someone creates a new block. That new block is send to everyone on the &lt;b&gt;network&lt;/b&gt;. Each node then verifies the block to make sure that it hasn't been tampered with. If everything checks out, each node adds this block to their own blockchain. All the nodes in this network create &lt;b&gt;consensus&lt;/b&gt;. They agree about what blocks are valid and which aren't. Blocks that are tampered with will be rejected by other nodes in the network.&lt;/p&gt;&lt;p style="text-align: left;"&gt;So to successfully tamper with a blockchain you'll need to tamper with all blocks on the chain, redo the proof-of-work for each block and take control of more than 50% of the peer-to-peer network. Only then will your tampered block become accepted by everyone else.&lt;br /&gt;&lt;br /&gt;This is almost impossible to do! .Blockchains are also constantly evolving. One of the more recent developments is the creation of &lt;b&gt;Smart contract.&lt;/b&gt;&lt;/p&gt;&lt;p style="line-height: 1.3125rem; margin: 0.875rem 0px;"&gt;&lt;span style="color: #1a1a1a; font-family: georgia;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="#" style="margin-left: auto; margin-right: auto;"&gt;&lt;span style="font-family: georgia;"&gt;&lt;img alt="Smart Contract" border="0" data-original-height="600" data-original-width="1050" height="183" src="https://blogger.googleusercontent.com/img/a/AVvXsEiYTQQREMoFggvzW33hTEaKjw2b8KOcyz_QqaIzQixvAcAgJ0ssNX-CnxDhj1-oID4b92OtKm9R_VwrQItHyNzmJ5XaXNOU8e2Bb1epIWEX2cznF8rFxWRMIz_mArYGkjFm6IJVmlK5D2oJIKqUuUdVUAuVHxI1d3rAJc7TPkqOPQ_Tm-oDdSHO5QY9Jw=w320-h183" title="Smart Contract" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;span style="font-family: georgia;"&gt;Smart Contract&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;/p&gt;These contracts are simple programs that are stored on the blockchain and can be used to automatically exchange coins based on certain conditions. More on smart contracts in another post. The creation of blockchain technology peaked a lot of people’s interest.&lt;br /&gt;&lt;br /&gt;Soon, others realized that the technology could be used for other things like storing medical records, creating a digital notary or even collecting taxes.&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</description><link>https://metabuddy.blogspot.com/2022/03/what-is-blockchain.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkD-W8rs8_hJeaRmjSgocdiQn5UZMkazNoSOGff1nSAUv6LfXPUsUknEkkvXQLA-w93Nyq_7vGyTa6faAAFEptVL3mpCVwun92Z5HNHPQwOKBOilhvv39rWVsHUoB7pt7MVXLrPRUVjmE8/s72-c/blockchain.webp" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7658182824128885555.post-5004091519246895582</guid><pubDate>Thu, 20 Jan 2022 17:37:00 +0000</pubDate><atom:updated>2022-03-17T13:36:38.134-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C Programming</category><category domain="http://www.blogger.com/atom/ns#">Computer</category><category domain="http://www.blogger.com/atom/ns#">Programming</category><title>C Programming - Tutorial</title><description>&lt;div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj90F80lzwSN2wy3XGwzB3GyKieF4pvWRxbtvOULJt-Q6haspfqv6BCaZ-EZWlScVoDTaVemraWj7x7CwyZVG5JeTwf0ViTJKt5i1rjR-CfP4Elzo24fxoCkxXuisHMXsY94bupwnvQlSpu/s2048/Gk+Most+Imporant+Questions+%252812%2529.jpg" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="C Programming Tutorial" border="0" data-original-height="1170" data-original-width="2048" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj90F80lzwSN2wy3XGwzB3GyKieF4pvWRxbtvOULJt-Q6haspfqv6BCaZ-EZWlScVoDTaVemraWj7x7CwyZVG5JeTwf0ViTJKt5i1rjR-CfP4Elzo24fxoCkxXuisHMXsY94bupwnvQlSpu/s16000/Gk+Most+Imporant+Questions+%252812%2529.jpg" title="C Programming Tutorial" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style="text-align: left;"&gt;What is Programming?&lt;/h2&gt;Computer programming is a medium for us to communicate with computers, just like we use Hindi or English to communicate with each other. Programming is a way for us to deliver our instructions to the computer&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;h2 style="text-align: left;"&gt;What is C programming?&lt;/h2&gt;C is a programming language. C is one of the oldest and finest programming languages. C was developed by Dennis Ritchie in 1972.&lt;br /&gt;&lt;h3 style="text-align: left;"&gt;&lt;u&gt;Uses of C&lt;/u&gt;&lt;/h3&gt;C is a language that is used to program a wide variety of systems. Some of the uses of C are as follows:&lt;br /&gt;&lt;br /&gt;Major parts of Windows, Linux, and other operating systems are written in C.&lt;br /&gt;C is used to write driver programs for devices like Tablets, Printers, etc.&lt;br /&gt;C language is used to program embedded systems where programs need to run faster in limited memory.&lt;br /&gt;C is used to develop games, an area where latency is very important, i.e., a computer has to react quickly to user input.&lt;br /&gt;&lt;h4 style="text-align: left;"&gt;Chapter 1: Variables, Constants, and Keywords:&lt;/h4&gt;&lt;h4 style="text-align: left;"&gt;Variables&lt;/h4&gt;A variable is a container that stores a ‘value.’ In the kitchen, we have containers storing rice, dal, sugar, etc. Similar to that variable in c stores the value of a constant. Example:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;table border="1" style="background-color: #f8f9fa; border-collapse: collapse; color: #212529; font-family: helvetica; font-size: 18.6667px; max-width: 90vw;"&gt;&lt;tbody style="box-sizing: border-box;"&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;a = 3&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;a is assigned “3”&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;b = 4.7&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;b is assigned “4.7”&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;c = 'A'&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;c is assigned “A”&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;h3 style="text-align: left;"&gt;Rules for naming variables in C :&lt;/h3&gt;&lt;b&gt;1. The first character must be an alphabet or underscore(_).&lt;/b&gt;&lt;p style="box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;"&gt;&lt;b&gt;&lt;br /&gt;2. No commas or blanks are allowed.&lt;br /&gt;&lt;br /&gt;3. No special symbol other than underscore is allowed&lt;br /&gt;&lt;br /&gt;4. Variable names are case sensitive&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;Constants&lt;/h3&gt;An entity whose value doesn’t change is called a constant.&lt;br /&gt;Types of constant&lt;br /&gt;&lt;br /&gt;Primarily there are 3 types of constant:&lt;br /&gt;&lt;br /&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;table border="1" style="border-collapse: collapse; max-width: 90vw;"&gt;&lt;tbody style="box-sizing: border-box;"&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;1. Integer Constant&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;-1,6,7,9&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;2. Real Constant&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;-322.1,2.5,7.0&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;3. Character Constant&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;‘a’,’$’,’@’(must be enclosed within single inverted commas)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h5 style="background-color: #f8f9fa; box-sizing: border-box; color: #212529; font-family: &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 1.25rem; font-weight: 500; line-height: 1.2; margin: 25px 0px 9px;"&gt;&lt;/h5&gt;&lt;h3 style="text-align: left;"&gt;Keywords&lt;/h3&gt;These are reserved words whose meaning is already known to the compiler. There are 32 keywords available in C programming:&lt;br /&gt;&lt;br /&gt;&lt;table border="5px" style="background-color: #f8f9fa; border-collapse: collapse; color: #212529; font-family: helvetica; font-size: 18.6667px; max-width: 90vw;"&gt;&lt;tbody style="box-sizing: border-box;"&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;auto&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;double&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;int&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;struct&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;break&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;long&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;else&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;switch&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;case&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;return&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;enum&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;typedef&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;char&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;register&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;extern&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;union&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;const&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;short&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;float&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;unsigned&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;continue&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;signed&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;for&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;void&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;default&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;sizeof&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;goto&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;volatile&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;do&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;static&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;if&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;while&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="background-color: #f8f9fa; box-sizing: border-box; color: #212529; font-family: helvetica; font-size: 18.6667px; margin-bottom: 1rem; margin-top: 0px;"&gt;&lt;span style="box-sizing: border-box;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style="text-align: left;"&gt;Our first C program&lt;/h3&gt;&lt;div class="code-toolbar" style="background-color: #f8f9fa; box-sizing: border-box; color: #212529; font-family: helvetica; position: relative;"&gt;&lt;pre class="language-c" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; max-height: 614px; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;"&gt;&lt;code class="language-c" style="background: none; box-sizing: border-box; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; hyphens: none; line-height: 1.5; max-height: 614px; overflow-wrap: normal; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;"&gt;&lt;span class="token macro property" style="box-sizing: border-box; color: #f92672;"&gt;&lt;span class="token directive-hash" style="box-sizing: border-box;"&gt;#&lt;/span&gt;&lt;span class="token directive keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;include&lt;/span&gt;&lt;span class="token string" style="box-sizing: border-box; color: #a6e22e;"&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt; &lt;span class="token function" style="box-sizing: border-box; color: #e6db74;"&gt;main&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;(&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;)&lt;/span&gt; &lt;span class="token punctuation" style="box-sizing: border-box;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="token function" style="box-sizing: border-box; color: #e6db74;"&gt;printf&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;(&lt;/span&gt;“Hello World”&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;)&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;return&lt;/span&gt; &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;0&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="toolbar" style="box-sizing: border-box; font-size: 18.6667px; opacity: 1; position: absolute; right: 0.2em; top: 0.3em; transition: opacity 0.3s ease-in-out 0s;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;"&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;&lt;u&gt;File :  first.c&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style="box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px; text-align: left;"&gt;The basic structure of a C program&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;p style="box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;"&gt;All c programs have to follow a basic structure. A c program starts with the main function and executes instructions presents inside it. Each instruction terminated with a semicolon(;)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style="text-align: left;"&gt;There are some basic rules which are applicable to all the c programs:&lt;/h4&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;Every program's execution starts from the main function.&lt;/li&gt;&lt;li&gt;All the statements are terminated with a semi-colon.&lt;/li&gt;&lt;li&gt;Instructions are case-sensitive.&lt;/li&gt;&lt;li&gt;Instructions are executed in the same order in which they are written.&lt;/li&gt;&lt;/ol&gt;&lt;p style="box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;"&gt;&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;&lt;span style="box-sizing: border-box;"&gt;Comments&lt;/span&gt;&lt;/h3&gt;&lt;span style="box-sizing: border-box;"&gt;Comments are used to clarify something about the program in plain language. It is a way for us to add notes to our program. There are two types of comments in c:&lt;/span&gt;&lt;br /&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;span style="box-sizing: border-box;"&gt;Single line comment: //This is a comment.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="box-sizing: border-box;"&gt;Multi-line comment : /*This is multi-line comment*/&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="background-color: #fcff01;"&gt;&lt;b&gt;Note: &lt;span style="color: red;"&gt;Comments in a C program are not executed and ignored.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style="text-align: left;"&gt;Compilation and execution&lt;/h3&gt;&lt;div&gt;A compiler is a computer program that converts a c program into machine language so that it can be easily understood by the computer.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A program is written in plain text. This plain text is a combination of instructions in a particular sequence. The compiler performs some basic checks and finally converts the program into an executable.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style="text-align: left;"&gt;Library functions&lt;/h3&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;p style="background-color: #f8f9fa; box-sizing: border-box; color: #212529; font-family: helvetica; font-size: 18.6667px; font-weight: 400; margin-bottom: 1rem; margin-top: 0px;"&gt;&lt;span style="box-sizing: border-box;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="box-sizing: border-box;"&gt;C language has a lot of valuable library functions which is used to carry out a certain task; for instance, printf function is used to print values on the screen.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style="text-align: left;"&gt;Types of variables&lt;/h3&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;p style="background-color: #f8f9fa; box-sizing: border-box; color: #212529; font-family: helvetica; font-size: 18.6667px; font-weight: 400; margin-bottom: 1rem; margin-top: 0px;"&gt;&lt;span style="box-sizing: border-box;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;table border="1" style="background-color: #f8f9fa; border-collapse: collapse; box-sizing: border-box; color: #212529; font-family: helvetica; font-size: 18.6667px; font-weight: bolder; max-width: 90vw;"&gt;&lt;tbody style="box-sizing: border-box;"&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box; font-size: small; font-weight: normal;"&gt;Integer variables&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box; font-size: small; font-weight: normal;"&gt;int a=3;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box; font-size: small; font-weight: normal;"&gt;Real variables&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box; font-size: small; font-weight: normal;"&gt;int a=7.7 (wrong as 7.7 is real) ; float a=7.7;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box; font-size: small; font-weight: normal;"&gt;Character variables&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="font-size: small;"&gt;char a=’B’;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 style="text-align: left;"&gt;&lt;span style="box-sizing: border-box;"&gt;Chapter 2: Instructions and Operators:&lt;/span&gt;&lt;/h2&gt;&lt;span style="box-sizing: border-box;"&gt;A C-program is a set of instructions. Just like a recipe - which contains instructions to prepare a particular dish.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style="text-align: left;"&gt;Types of instructions in C:&lt;/h3&gt;&lt;div&gt;1. Type declaration instruction&lt;br /&gt;2. Arithmetic instruction&lt;br /&gt;3. Control instruction&lt;br /&gt;&lt;br /&gt;&lt;h3 style="text-align: left;"&gt;Type of declaration instruction:&lt;/h3&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;span&gt;&lt;span style="font-size: x-small;"&gt;&lt;div class="code-toolbar" style="background-color: #f8f9fa; box-sizing: border-box; color: #212529; font-family: helvetica; font-weight: 400; position: relative;"&gt;&lt;pre class="language-c" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; max-height: 614px; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;"&gt;&lt;code class="language-c" style="background: none; box-sizing: border-box; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; hyphens: none; line-height: 1.5; max-height: 614px; overflow-wrap: normal; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;"&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt; a&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;float&lt;/span&gt; b&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;other variations&lt;span class="token operator" style="box-sizing: border-box;"&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt; i &lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt; &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;10&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt; &lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt; j &lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt; i&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;,&lt;/span&gt; &lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt; a &lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt; &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;2&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt; j1 &lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt; a &lt;span class="token operator" style="box-sizing: border-box;"&gt;+&lt;/span&gt; j &lt;span class="token operator" style="box-sizing: border-box;"&gt;-&lt;/span&gt; i&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;float&lt;/span&gt; b &lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt; a&lt;span class="token operator" style="box-sizing: border-box;"&gt;+&lt;/span&gt;&lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;3&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt; &lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;float&lt;/span&gt; a &lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt; &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;1.1&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt;    &lt;span class="token operator" style="box-sizing: border-box;"&gt;==&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;&amp;gt;&lt;/span&gt;Error&lt;span class="token operator" style="box-sizing: border-box;"&gt;!&lt;/span&gt; As we are trying to use a before defining it&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;.&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt; a&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;,&lt;/span&gt;b&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;,&lt;/span&gt;c&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;,&lt;/span&gt;d&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;a&lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt;b&lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt;c&lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt;d&lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt;&lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;30&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt;                      &lt;span class="token operator" style="box-sizing: border-box;"&gt;==&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;&amp;gt;&lt;/span&gt; Value of a&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;,&lt;/span&gt;b&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;,&lt;/span&gt;c &lt;span class="token operator" style="box-sizing: border-box;"&gt;&amp;amp;&lt;/span&gt; d will be &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;30&lt;/span&gt; each&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;.&lt;/span&gt; &lt;/code&gt;&lt;/pre&gt;&lt;div class="toolbar" style="box-sizing: border-box; opacity: 0; position: absolute; right: 0.2em; top: 0.3em; transition: opacity 0.3s ease-in-out 0s;"&gt;&lt;div class="toolbar-item" style="box-sizing: border-box; display: inline-block;"&gt;&lt;button style="appearance: button; background: rgba(224, 224, 224, 0.2); border-color: initial; border-radius: 0.5em; border-style: initial; border-width: 0px; box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 0px 0px; color: #bbbbbb; cursor: pointer; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; margin: 0px 23px 0px 0px; overflow: visible; padding: 0px 0.5em; user-select: none;" type="button"&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;h3 style="text-align: left;"&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 style="text-align: left;"&gt;Arithmetic Instructions&lt;/h3&gt;&lt;img height="400" src="https://api.codewithharry.com/media/videoSeriesFiles/courseFiles/c-tutorial-in-hindi-with-notes/OperC2.png" width="366" /&gt;&lt;br /&gt;&lt;p style="box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt;&lt;span style="background-color: #fcff01; color: red; font-size: medium;"&gt;Note:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;b&gt;1.No operator is assumed to be present&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;int i=ab  ( Invalid )&lt;/div&gt;&lt;div style="text-align: left;"&gt;int i=a*b  ( valid )&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;b&gt;2. There is no operator to perform exponentiation in c however we can use pow(x,y) from &amp;lt;math.h&amp;gt; (More in next chapter).&lt;/b&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;h3 style="text-align: left;"&gt;Type conversion&lt;/h3&gt;&lt;span&gt;&lt;span&gt;&lt;div class="code-toolbar" style="background-color: #f8f9fa; box-sizing: border-box; color: #212529; font-family: helvetica; font-weight: 400; position: relative;"&gt;&lt;pre class="language-c" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; max-height: 614px; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;"&gt;&lt;code class="language-c" style="background: none; box-sizing: border-box; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; hyphens: none; line-height: 1.5; max-height: 614px; overflow-wrap: normal; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;"&gt;&lt;span style="font-size: x-small;"&gt;An Arithmetic operation between&lt;br /&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt; and &lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt;     &lt;span class="token operator" style="box-sizing: border-box;"&gt;==&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;&amp;gt;&lt;/span&gt; &lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt; and &lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;float&lt;/span&gt;   &lt;span class="token operator" style="box-sizing: border-box;"&gt;==&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;&amp;gt;&lt;/span&gt; &lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;float&lt;/span&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;float&lt;/span&gt; and &lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;float&lt;/span&gt; &lt;span class="token operator" style="box-sizing: border-box;"&gt;==&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;&amp;gt;&lt;/span&gt; &lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;float&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;5&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;/&lt;/span&gt;&lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;2&lt;/span&gt; &lt;span class="token operator" style="box-sizing: border-box;"&gt;--&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;&amp;gt;&lt;/span&gt; &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;2&lt;/span&gt;               &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;5.0&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;/&lt;/span&gt;&lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;2&lt;/span&gt; &lt;span class="token operator" style="box-sizing: border-box;"&gt;--&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;&amp;gt;&lt;/span&gt; &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;2.5&lt;/span&gt; &lt;span class="token comment" style="box-sizing: border-box; color: #8292a2;"&gt;//IMPORTANT!!&lt;/span&gt;&lt;br /&gt;&lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;2&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;/&lt;/span&gt;&lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;5&lt;/span&gt; &lt;span class="token operator" style="box-sizing: border-box;"&gt;--&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;&amp;gt;&lt;/span&gt; &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;0&lt;/span&gt;               &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;2.0&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;/&lt;/span&gt;&lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;5&lt;/span&gt; &lt;span class="token operator" style="box-sizing: border-box;"&gt;--&lt;/span&gt;&lt;span class="token operator" style="box-sizing: border-box;"&gt;&amp;gt;&lt;/span&gt; &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;0.4&lt;/span&gt; &lt;span class="token comment" style="box-sizing: border-box; color: #8292a2;"&gt;//IMPORTANT!!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE&lt;span class="token operator" style="box-sizing: border-box;"&gt;:&lt;/span&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;int&lt;/span&gt; a &lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt; &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;3.5&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt; &lt;span class="token comment" style="box-sizing: border-box; color: #8292a2;"&gt;//In this case, 3.5 (float) will be denoted to a 3 (int) because a cannot store floats.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="token keyword" style="box-sizing: border-box; color: #66d9ef;"&gt;float&lt;/span&gt; a &lt;span class="token operator" style="box-sizing: border-box;"&gt;=&lt;/span&gt; &lt;span class="token number" style="box-sizing: border-box; color: #ae81ff;"&gt;8&lt;/span&gt;&lt;span class="token punctuation" style="box-sizing: border-box;"&gt;;&lt;/span&gt; &lt;span class="token comment" style="box-sizing: border-box; color: #8292a2;"&gt;// a will store 8.0 [8--&amp;gt;8.0(Promotion to float)]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="toolbar" style="box-sizing: border-box; font-size: 18.6667px; opacity: 0; position: absolute; right: 0.2em; top: 0.3em; transition: opacity 0.3s ease-in-out 0s;"&gt;&lt;div class="toolbar-item" style="box-sizing: border-box; display: inline-block;"&gt;&lt;button style="appearance: button; background: rgba(224, 224, 224, 0.2); border-color: initial; border-radius: 0.5em; border-style: initial; border-width: 0px; box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 0px 0px; color: #bbbbbb; cursor: pointer; font-family: inherit; font-size: 0.8em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; margin: 0px 23px 0px 0px; overflow: visible; padding: 0px 0.5em; user-select: none;" type="button"&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style="text-align: left;"&gt;Quick Quiz:&lt;/h3&gt;&lt;b&gt;Question&amp;nbsp;&lt;/b&gt;- int k=3.0/9 value of k? and why?&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Solution&amp;nbsp;&lt;/b&gt;- 3.0/9=0.333, but since k is an int, it cannot store floats &amp;amp; value 0.33 is demoted to 0.&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="box-sizing: border-box;"&gt;&lt;p style="box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;"&gt;&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;&lt;span style="box-sizing: border-box;"&gt;Operator Precedence in C&lt;/span&gt;&lt;/h3&gt;&lt;span style="box-sizing: border-box;"&gt;3*x-8y  is (3x)-(8y) or  3(x-8y)?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="box-sizing: border-box;"&gt;In the c language, simple mathematical rules like BODMAS no longer apply.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="box-sizing: border-box;"&gt;The answer to the above question is provided by operator precedence &amp;amp; associativity.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 style="text-align: left;"&gt;&lt;span style="box-sizing: border-box;"&gt;Operator precedence&lt;/span&gt;&lt;/h3&gt;The following table list the operator priority in C.&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;table border="3px" style="background-color: #f8f9fa; border-collapse: collapse; color: #212529; font-family: helvetica; font-size: 18.6667px; font-weight: 400; max-width: 90vw;"&gt;&lt;tbody style="box-sizing: border-box;"&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-weight: bolder;"&gt;Priority&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;&lt;span style="box-sizing: border-box; font-weight: bolder;"&gt;Operators&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;1&lt;span style="box-sizing: border-box; font-size: 14px; line-height: 0; position: relative; top: -0.5em; vertical-align: initial;"&gt;st&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;* / %&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;2&lt;span style="box-sizing: border-box; font-size: 14px; line-height: 0; position: relative; top: -0.5em; vertical-align: initial;"&gt;nd&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;+&amp;nbsp;&amp;nbsp; -&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;&lt;span style="box-sizing: border-box;"&gt;3&lt;span style="box-sizing: border-box; font-size: 14px; line-height: 0; position: relative; top: -0.5em; vertical-align: initial;"&gt;rd&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style="box-sizing: border-box; max-width: 30vw;"&gt;=&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;span style="font-size: medium;"&gt;Operators of higher priority are evaluated first in the absence of parenthesis.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>https://metabuddy.blogspot.com/2022/03/c-programming-tutorial.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj90F80lzwSN2wy3XGwzB3GyKieF4pvWRxbtvOULJt-Q6haspfqv6BCaZ-EZWlScVoDTaVemraWj7x7CwyZVG5JeTwf0ViTJKt5i1rjR-CfP4Elzo24fxoCkxXuisHMXsY94bupwnvQlSpu/s72-c/Gk+Most+Imporant+Questions+%252812%2529.jpg" width="72"/><thr:total>0</thr:total><georss:featurename>Rajpath, India Gate, New Delhi, Delhi 110001, India</georss:featurename><georss:point>28.6129237 77.22949899999999</georss:point><georss:box>28.605389221602088 77.220915931152334 28.620458178397911 77.238082068847646</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7658182824128885555.post-1371965063724265041</guid><pubDate>Sat, 11 Sep 2021 13:50:00 +0000</pubDate><atom:updated>2022-03-18T03:42:50.217-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Cryptocurrency</category><title>Is Solana the real Ethereum killer?</title><description>&lt;html lang="en"&gt;&lt;head&gt;	&lt;meta charset="utf-8"/&gt;	&lt;meta content="width=device-width, initial-scale=1.0" name="viewport"/&gt;	&lt;meta content="Is Solana a Ethereum killer? Solana is one of the fastest-growing cryptocurrencies in the crypto market. It is performing nicely to replace Ethereum in the coming years." name="description"/&gt;  	&lt;meta content="solanavsethereum, ethereum killer, ethereum killer solana, cryptocurrencies,crypto,cryptocurrency,cryptotrading,trading,cryptocoins,polygon crypto,ecash,polymath,ravencoin,Monero,blockFi,iota,blockchain,NFT,decentralized,coinswitch,trustwallet,wazirx,grow,coins,digital coin,safemoon,market capital,filecoin,NKN,mining,invest,trade,,wallet,ethereum,bitcoin,mining,dogecoin,solana,cardano,polkadot,ripple,xrp,btc,eth,memecoin,exchange,buy,sell,polygon,litecoin,matic,legal,API,stock,share,currency,digital scroller, digitalscroller.blogspot.com" name="keywords"/&gt; &lt;/head&gt;&lt;body&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja3sMpisUk8m0QC8v0sDupjNfuXMr7KS6oSp7P_r5dH5f1lDxU0o8xV6btrf-ENPrXYnW3-tH4_Sx-1zOw4z99mJ9t5_jAWrqJq8_sCJ3Us9kOuX11I6MDkceZ5Oh2_RqTA8am3MdEEK2a/s512/solanaeth.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="314" data-original-width="512" height="464" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja3sMpisUk8m0QC8v0sDupjNfuXMr7KS6oSp7P_r5dH5f1lDxU0o8xV6btrf-ENPrXYnW3-tH4_Sx-1zOw4z99mJ9t5_jAWrqJq8_sCJ3Us9kOuX11I6MDkceZ5Oh2_RqTA8am3MdEEK2a/w756-h464/solanaeth.png" width="756" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;b style="text-align: left;"&gt;Solana is &lt;/b&gt;&lt;span style="text-align: left;"&gt;one of the fastest-growing cryptocurrencies in the crypto market. It has performed nicely to&amp;nbsp;replace &lt;/span&gt;&lt;b style="text-align: left;"&gt;Ethereum &lt;/b&gt;&lt;span style="text-align: left;"&gt;in the coming years, According to the market analysis, it is found that its price will not increase as much as Ethereum but definitely, it can replace Ethereum in &lt;/span&gt;&lt;b style="text-align: left;"&gt;Ranking&lt;/b&gt;&lt;span style="text-align: left;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Most of the investors and traders are not accepting Ethereum because of its high fee in transactions and its latency at the same time &lt;b&gt;Solana &lt;/b&gt;project is creating hype because it is much faster in transactions than Ethereum with a low transaction fee.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Solana &lt;/b&gt;is currently competing with &lt;b&gt;Binance Coin&lt;/b&gt;, &lt;b&gt;Polkadot,&lt;/b&gt; and &lt;b&gt;Tether&lt;/b&gt; in the market. It&amp;nbsp;has left many cryptocurrencies behind in the crypto market just because of its fast secure and open structure, many of project has adapted Solana chain and its market expansion is increasing day by day.&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;How Solana Is Ranking?&lt;/h3&gt;&lt;p&gt;Leaving behind many of the cryptocurrencies Solana is now in the top 10 and has taken&amp;nbsp;&lt;b&gt;6th&lt;/b&gt;&amp;nbsp;rank in the cryptocurrency market. Its current price is&lt;b&gt;&amp;nbsp;$182 &lt;/b&gt;and the price is continuously rising.&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;Should We Invest In Solana?&lt;/h3&gt;&lt;p&gt;As if now, it is the perfect time to invest in &lt;b&gt;Solana, &lt;/b&gt;currently it's rising per day so it can be a good time to invest and hold for a long time. It is also the fastest-growing ecosystem in the crypto market with over 400 projects.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;span style="color:red;"&gt;&lt;marquee&gt;&lt;b&gt;&lt;i&gt;Digital Scroller does not bear any responsibility for their advice. Please consult your financial advisor before dealing/investing in cryptocurrencies.&lt;/i&gt;&lt;/b&gt;&lt;/marquee&gt;&lt;/span&gt;&lt;h3 style="text-align: left;"&gt;Transaction speed&amp;nbsp;&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;If we compare it with Ethereum, then Ethereum is completing only 15 transactions per sec and BSC is completing 100 per sec, and Polkadot per 1000 per sec but Solana is completing 65000 per sec that is super fast. If we compare its transaction speed then it is again the lowest.&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;Transaction Fees&amp;nbsp;&lt;/h3&gt;&lt;p&gt;&lt;b&gt;Ethereum&lt;/b&gt;&amp;nbsp;- 30-80$ per trasaction&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Polkadot&lt;/b&gt;&amp;nbsp;- $1 per trasaction&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Binance Smart chain&lt;/b&gt;&amp;nbsp; - $0.01 per trasaction&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Tron&lt;/b&gt; - Free&lt;/p&gt;&lt;p&gt;&lt;b&gt;Solana&lt;/b&gt; - $0.00025 per transaction&lt;/p&gt;&lt;h3 style="text-align: left;"&gt;Conclusion&lt;/h3&gt;&lt;p&gt;When &lt;b&gt;Solana&lt;/b&gt;&amp;nbsp;is skyrocketing that much faster in the cryptocurrency market than it may take over &lt;b&gt;Ethereum's&lt;/b&gt;&amp;nbsp;market and its projects. Traders and investors are moving towards Solana instead of Ethereum for smart contracts, You need not wonder to invest in &lt;b&gt;Solana,&lt;/b&gt;&amp;nbsp;have a market analysis first then you can invest in this.&lt;/p&gt;&lt;p&gt;Do you think Solana is an Ethereum killer? Comment your answer!&lt;/p&gt;&lt;div style="-webkit-text-stroke-width: 0px; background: transparent; border: 0px; box-sizing: border-box; color: black; font-family: Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin: 0px; orphans: 2; outline: 0px; padding: 0px; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;div id="id_story_show_comments" style="background: transparent; border: 0px; box-sizing: border-box; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="background: transparent; border: 0px; box-sizing: border-box; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div id="id_story_write_comments" style="background: transparent; border: 0px; box-sizing: border-box; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="background: transparent; border: 0px; box-sizing: border-box; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="pageadd" id="gpt_ad_FE_ROS_MEDIANET_AP_ATF_STORY" style="-webkit-text-stroke-width: 0px; background: transparent; border: 0px; box-sizing: border-box; color: black; font-family: Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin: 0px; orphans: 2; outline: 0px; padding: 0px; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;b&gt;Follow&lt;/b&gt;&lt;/span&gt; &lt;b&gt;&lt;a href="https://www.blogger.com/follow.g?blogID=6576705207280988281"&gt;&lt;span&gt;Digital Scroller&lt;/span&gt;&lt;/a&gt;&amp;nbsp;for regular updates.&lt;/b&gt;&lt;/div&gt;  &lt;div id="hbzsub"&gt; &lt;div class="social-hbz"&gt;  &lt;ul&gt;    &lt;li&gt;&lt;a class="facebook" href="https://www.facebook.com/digitalscrollerr/" target="_blank"&gt;&lt;i class="fab fa-facebook-f"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a class="twitter" href="https://twitter.com/digitalscroller/" target="_blank"&gt;&lt;i class="fab fa-twitter"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a class="instagram" href="https://www.instagram.com/digital_scroller/" target="_blank"&gt;&lt;i class="fab fa-instagram"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;  &lt;/ul&gt; &lt;/div&gt; &lt;div class="hbzsignup-form"&gt;  &lt;div class="hbzform-inner"&gt;   &lt;h4&gt;Get posts notification to your inbox&lt;/h4&gt;  &lt;/div&gt;  &lt;div class="hbzemailform"&gt;   &lt;form action="http://feedburner.google.com/fb/a/mailverify" id="subscribe" method="post" onsubmit="window.open('http://feedburner.google.com/DigitalScroller/);return true" target="popupwindow"&gt;    &lt;input name="uri" type="hidden" value="https://digitalscroller.blogspot.com/" /&gt;    &lt;input name="loc" type="hidden" value="en_US" /&gt;    &lt;input class="hbzemailbox" name="email" placeholder="Enter your email here..." required="" type="text" /&gt;    &lt;input class="hbzemailbutton" type="submit" value="Sign Up" /&gt;   &lt;/form&gt;  &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;script type="application/ld+json"&gt;    {       "@context": "https://schema.org",       "@type": "BlogPosting",       "mainEntityOfPage": {         "@type": "WebPage",         "@id": "https://digitalscroller.blogspot.com/2021/09/is-solana-real-ethereum-killer.html"       },       "headline": "Is Solana the real Ethereum killer?",       "image": [         "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja3sMpisUk8m0QC8v0sDupjNfuXMr7KS6oSp7P_r5dH5f1lDxU0o8xV6btrf-ENPrXYnW3-tH4_Sx-1zOw4z99mJ9t5_jAWrqJq8_sCJ3Us9kOuX11I6MDkceZ5Oh2_RqTA8am3MdEEK2a/w756-h464/solanaeth.png"       ],       "datePublished": "2021-09-12T00:00:00+08:00",       "dateModified": "2021-09-12T00:00:00+08:00",       "author": {         "@type": "Organization",         "name": "Digital Scroller"       },       "publisher": {         "@type": "Technology",         "name": "Digital Scroller",         "logo": {           "@type": "ImageObject",           "url": "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW9rRe23kWGDchdXqJeySfjudoLGMjeVOZSjrRFrxo9rFajqVKcOcAi0pgq7gKafR_bjLDNSQyHVS-0h8SUQfLRBlz_H5UxHa5BPhDkr8XJITTEiRZqrUjJ6_Uvww4uyWW8cbNut4ibWSQ/s1600/Digital-Scroller+%25282%2529.png"         }       }     }     &lt;/script&gt;&lt;/body&gt;&lt;/html&gt;</description><enclosure length="0" type="text/html" url="http://feeds.feedburner.com/DigitalScroller"/><link>https://metabuddy.blogspot.com/2021/09/is-solana-real-ethereum-killer.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja3sMpisUk8m0QC8v0sDupjNfuXMr7KS6oSp7P_r5dH5f1lDxU0o8xV6btrf-ENPrXYnW3-tH4_Sx-1zOw4z99mJ9t5_jAWrqJq8_sCJ3Us9kOuX11I6MDkceZ5Oh2_RqTA8am3MdEEK2a/s72-w756-h464-c/solanaeth.png" width="72"/><thr:total>3</thr:total><georss:featurename>United States</georss:featurename><georss:point>37.09024 -95.712891</georss:point><georss:box>8.780006163821156 -130.869141 65.400473836178847 -60.556640999999992</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7658182824128885555.post-5342605959062471540</guid><pubDate>Sun, 22 Aug 2021 14:27:00 +0000</pubDate><atom:updated>2022-03-18T03:43:29.161-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Programming</category><title>What is an API  | Application programming Interface</title><description>&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/a/AVvXsEj837Ho1RsPnz_gMq1W_J2iqoCT9tvOJWIYKd1MgqFayYl6Fl30YRNqAHMUw7FW-ckLUoaAYQ5BFbdqi_ZZIez0fdL-wT1L18A6K1Q_8faifb3jE776QaRpqD3xju8NhFXNikaCYnpDFZ5Tbd6TloN8-Ogmn_H_1VUAHS2AIl436sP9BgAskiGHMoXkyg=s2048" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" data-original-height="1152" data-original-width="2048" height="360" src="https://blogger.googleusercontent.com/img/a/AVvXsEj837Ho1RsPnz_gMq1W_J2iqoCT9tvOJWIYKd1MgqFayYl6Fl30YRNqAHMUw7FW-ckLUoaAYQ5BFbdqi_ZZIez0fdL-wT1L18A6K1Q_8faifb3jE776QaRpqD3xju8NhFXNikaCYnpDFZ5Tbd6TloN8-Ogmn_H_1VUAHS2AIl436sP9BgAskiGHMoXkyg=w640-h360" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;API&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When you hang around programmers, you might have heard about &lt;b&gt;APIs &lt;/b&gt;and how they can be&lt;/div&gt;&lt;div&gt;used to perform certain tasks or retrieve some data ,But what are these exactly, and why were they created?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let me explain the problem with a simple, non-IT related example.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="#" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="339" data-original-width="509" height="426" src="https://blogger.googleusercontent.com/img/a/AVvXsEhxeQeS9vxjBN2jGqV2e5Z0vY39ejTbRGHV-QNgJMHb2N-qxAT91F7dB9exwhwP544yogU-r9L2Afw_tC9i_6wqifORkJ2yEL3goNyj0_T58cJPXLP3FfWuO9GyyEqejrk5qrV4MfJDv5ZX8XRRiXy_j2tDa8924FTt6dF9QWBeV7pk4Iaa49l-GWAsGA=w640-h426" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When you go to a &lt;b&gt;restaurant &lt;/b&gt;and order some food, you interact with the &lt;b&gt;waiter&lt;/b&gt;. You can order &lt;b&gt;food &lt;/b&gt;and &lt;b&gt;drinks&lt;/b&gt;, ask questions about the menu, request and pay the bill, and much more.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this example, the &lt;b&gt;waiter &lt;/b&gt;is shielding you from all the complicated stuff that happens&lt;/div&gt;&lt;div&gt;behind the scenes. you don’t have to worry about stoves, ovens, dishes, managing stock, or pouring drinks.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;He is the &lt;b&gt;interface &lt;/b&gt;between you and all of the services that a restaurant offers. Giving you a way to &lt;b&gt;interact &lt;/b&gt;with the restaurant while still shielding you from all the complexity behind the scenes. In a way, the waiter can be seen as the API of the restaurant, and through this example, you intuitively understand why they are useful.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The term &lt;b&gt;API &lt;/b&gt;stands for &lt;b&gt;Application Programmable Interface&lt;/b&gt;, and it’s a way for different programs to work together in various ways. There are many types of API’s and reasons why they are used.&lt;/div&gt;&lt;script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4780451799247980"      crossorigin="anonymous"&gt;&lt;/script&gt;&lt;ins class="adsbygoogle"      style="display:block; text-align:center;"      data-ad-layout="in-article"      data-ad-format="fluid"      data-ad-client="ca-pub-4780451799247980"      data-ad-slot="9568175438"&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;h4 style="text-align: left;"&gt;I’ll highlight 4 of them here:&lt;/h4&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="#" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" data-original-height="1152" data-original-width="2048" height="180" src="https://blogger.googleusercontent.com/img/a/AVvXsEjw0_eDP9HMVfs6bWTdfNpXwSz63ZpxEtc0KYorxF7yYwSfr-qkSpXNIrZ2eQk2Au4XWxkT5ySSeq9VDP4lE_BRMJPpga70QOHLU8YLjiqau81fqKAXAMouxnuIKaODyYiPLRdarJxdpeGWaarrvc7jN8Rf2dIlS3GOXWNn2brYrglZ5W8In-YOPaVUKA=s320" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For starters, &lt;b&gt;API’s &lt;/b&gt;can be used to get access to data from third parties. In the restaurant &lt;b&gt;example&lt;/b&gt;, the waiter can provide you information on the status of your order, without you having to go to the kitchen yourself.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Another &lt;b&gt;example &lt;/b&gt;would be the weather app on your phone. Google or Apple have not gone out and put temperature sensors all over the world. No, instead these apps use the &lt;b&gt;API &lt;/b&gt;of a third-party to retrieve weather predictions. Apple for instance is using the &lt;b&gt;API &lt;/b&gt;of The Weather Channel.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;API’s &lt;/b&gt;allow different apps and services to exchange information. These days, it’s hard to find a service that doesn’t have an API. There are API’s to lookup recipes, lyrics, information on barcodes, zip codes, available parking spaces, public holidays, and so on and so on.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Aside from just accessing data, &lt;b&gt;API's &lt;/b&gt;can also be used to hide complexity and perform tasks.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the restaurant example, you don’t need to know how to prepare a perfect roll of Sushi,&lt;/div&gt;&lt;div&gt;you just order one.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Another &lt;b&gt;example &lt;/b&gt;would be the operating systems on our computers and phones. App developers don’t have to worry about setting up a &lt;b&gt;WiFi &lt;/b&gt;connection, drawing shapes onto the screen to make a beautiful user &lt;b&gt;interface &lt;/b&gt;or how to talk to the various sensors like the accelerometer or GPS.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;No, instead the operating system gives &lt;b&gt;developers &lt;/b&gt;a bunch of &lt;b&gt;API’s &lt;/b&gt;that simplify all of this. If an app wants to show a button on the screen, it just asks the system to render one. The app doesn’t have to worry about what device it is running on, what hardware it has, screen resolution, or anything like that.&lt;/div&gt;&lt;div&gt;It makes developers more efficient because they can focus on what matters to them.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;But &lt;b&gt;aside &lt;/b&gt;from accessing data and abstracting complexity, &lt;b&gt;API's &lt;/b&gt;can also be used to extend&lt;/div&gt;&lt;div&gt;functionality. For &lt;b&gt;instance&lt;/b&gt;, on iOS, applications can show a widget in Notification Center.&lt;/div&gt;&lt;div&gt;And to do that, the app notifies the &lt;b&gt;system &lt;/b&gt;through an &lt;b&gt;API &lt;/b&gt;that it has a widget available.&lt;/div&gt;&lt;div&gt;And if the user adds it to their Notification Center, the system will contact the app to&lt;/div&gt;&lt;div&gt;ask how it should display the widget.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Another &lt;/b&gt;example is &lt;b&gt;Siri&lt;/b&gt;,&lt;b&gt; Google Assistant&lt;/b&gt; or &lt;b&gt;Alexa&lt;/b&gt;. These personal assistants are quite clever but external developers can use the assistant’s API to extend the functionalities even further.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;span style="margin-left: auto; margin-right: auto;"&gt;&lt;a href="#"&gt;&lt;img border="0" data-original-height="1280" data-original-width="1920" height="426" src="https://blogger.googleusercontent.com/img/a/AVvXsEiejg0POfhrFhXRkCskrO6xkKtC_helEmHnepmJiUFg1Kd3lPVApTM9bvmGhXeHCcd4JawZDDX8vfqsjD7S6yOU_flBndIbsqN56CBjJAFPicV9pJ22EFaTq6S7Xg9AgRTTzofx1CNCSqdbJ4ZvToOlIF9aZuJ8VkNqZXwKrWNwQFQ3VLyzYdz8z_jMfw=w640-h426" width="640" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;a href="#"&gt;Google Home&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;My &lt;b&gt;Google Home&lt;/b&gt; for instance didn’t know how to turn my smart plugs on and off.&lt;/div&gt;&lt;div&gt;But that changed, when the vendor integrated with the Google Assistant through its API.&lt;/div&gt;&lt;div&gt;Suddenly, Google became aware of the new hardware, its capabilities and how to interact with&lt;/div&gt;&lt;div&gt;them.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You might not realize it, but &lt;b&gt;API’s &lt;/b&gt;are all around us. You’ve probably seen messages like these, your phone asking for permission to use your location or microphone. That brings us to the final use case: API’s can be used as gatekeepers.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For instance, on mobile platforms, the system only has a handful of API’s that can be&lt;/div&gt;&lt;div&gt;used to get your location. And because it’s centralized in the system, it’s really easy for iOS or Android to notify you when an app is using your location. So it’s not the app that is being nice, and asks permission first. No, it’s the system that does it for them.&lt;/div&gt;&lt;div&gt;There’s no way around it. What’s more, the system also gives the ability to revoke this permission at a later time, should you change your mind.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="#" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Phone Permission" border="0" data-original-height="1152" data-original-width="2048" height="180" src="https://blogger.googleusercontent.com/img/a/AVvXsEh-Xk3ONhgjJBl8rnKoD0n5hMNFfArCx5c6huoFPPx0PCXxAUy_n9UEeW9ycasMqTDDv48SPIn1mS9S-SAVIr13pubmX-m2SpmGtwwVVY5Rpe-6pz2ellOStkaDiyqfd9Fsz2PAbVWTsrlRm_jcimCGb9-1A76zIZ5KLV3trCZ36Jmf5tLHvSt8KHdqWg=w320-h180" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So every time your phone asks you for permission, you know that an app is using an &lt;b&gt;API &lt;/b&gt;of the&lt;/div&gt;&lt;div&gt;system. And one that is privacy sensitive. And while that is great, there is an issue with this usually permission is only asked once&lt;/div&gt;&lt;div&gt;.&lt;/div&gt;&lt;div&gt;You might have used your &lt;b&gt;Google &lt;/b&gt;or &lt;b&gt;Facebook&lt;/b&gt; account to login to another website or app.&lt;/div&gt;&lt;div&gt;It’s easy, fast and convenient. But by doing that, we also give the website or app the permission to access some of our data. Like our name or email address.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This is great, because it puts us in control of our personal data. if you don’t want to share it, you just deny it. However, the problem here is that sometimes these permissions are long lasting and after&lt;/div&gt;&lt;div&gt;a while we forget what apps or websites we gave permission to access our data. This is what allowed Cambridge Analytica to collect massive amounts of data through the Facebook API.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;They created a “personality quiz” that asked for permission to get some of your personal&lt;/div&gt;&lt;div&gt;data. However, if you gave it permission, the app could silently access your data for months,&lt;/div&gt;&lt;div&gt;even if you didn’t use it anymore.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Instead, you had to revoke the permission through the Facebook website. So, in short: &lt;b&gt;API’s &lt;/b&gt;can act as gatekeepers, protecting our personal data and only giving it out to the apps we choose.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;But we should be aware about how long those permissions last, and revoke them when we&lt;/div&gt;&lt;div&gt;no longer use an app. So time for a conclusion. API’s are all around us.They are used to get access to data so that multiple apps or services can work together.They can also hide complexity for developers, allowing them to not waste time on figuring out how GPS works for instance.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;API’s can also be used to extend functionality of existing systems and finally, they can&lt;/div&gt;&lt;div&gt;act as gatekeepers to protect our personal data.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I hope this article brought some clarity to a topic that is mostly discussed among developers.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description><link>https://metabuddy.blogspot.com/2021/08/what-is-api-application-programming.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/a/AVvXsEj837Ho1RsPnz_gMq1W_J2iqoCT9tvOJWIYKd1MgqFayYl6Fl30YRNqAHMUw7FW-ckLUoaAYQ5BFbdqi_ZZIez0fdL-wT1L18A6K1Q_8faifb3jE776QaRpqD3xju8NhFXNikaCYnpDFZ5Tbd6TloN8-Ogmn_H_1VUAHS2AIl436sP9BgAskiGHMoXkyg=s72-w640-h360-c" width="72"/><thr:total>0</thr:total></item></channel></rss>