<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Frey</title>
    <description>The latest articles on DEV Community by Frey (@fr3y).</description>
    <link>https://dev.to/fr3y</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F539059%2F1c79e822-4ce6-45db-92ea-231530392ad9.jpg</url>
      <title>DEV Community: Frey</title>
      <link>https://dev.to/fr3y</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fr3y"/>
    <language>en</language>
    <item>
      <title>Features of C :) </title>
      <dc:creator>Frey</dc:creator>
      <pubDate>Sun, 18 Jul 2021 09:25:09 +0000</pubDate>
      <link>https://dev.to/fr3y/features-of-c-297m</link>
      <guid>https://dev.to/fr3y/features-of-c-297m</guid>
      <description>&lt;p&gt;/*&lt;br&gt;
today we will cover some features in C&lt;br&gt;
as c is widely used it must have some of the major features :) like&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Simple 
c is a simple language which is because of it's structured approach and the rich libraries and Data types&lt;/li&gt;
&lt;li&gt;Machine Independent or Portable
unlike assembly language c language can be performed on different machines :) and that the main reason of building C language :)
3.Mid-level programming language
as we know c is used to develop the hardware and kernel but altho it is also consider as a mid language because it is used on different machines as any 
high level language is used :) &lt;/li&gt;
&lt;li&gt;Structured programming language
it is a spl language as we can break it into steps with the use of functions which make it easier to understand &lt;/li&gt;
&lt;li&gt;Rich Library
c gives you a lot's of inbuilt functions which makes development fast.&lt;/li&gt;
&lt;li&gt;Memory Management
c support the dynamic memory allocation in which we can free the memory by using free()
anytime we want &lt;/li&gt;
&lt;li&gt;Speed
c is fast yeah it is because of less inbuilt functions as i have texted above it have inbuilt functions which makes it a rich library languages but 
you can simply say that they are quite less then other High level language &lt;/li&gt;
&lt;li&gt;pointers 
c supports pointers well this the the coolest thing i like about c because by pointers we can use c to direct interact  with memory and 
we can use pointers for memory, structure, arrays. well you will you will also fall for pointers if you are learning C&lt;/li&gt;
&lt;li&gt; Recursion
it is noting just a function within a functions i will go with a function soon enough and cover this topic :) &lt;/li&gt;
&lt;li&gt;Extensible
why it is extensible because c can able to learn new things from it's master means you can teach c new things and have more fun with codes. 
well this is for today Arigato :) see you on next article.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;~ Frey &lt;br&gt;
*/&lt;/p&gt;

</description>
      <category>c</category>
      <category>beginners</category>
      <category>csharp</category>
    </item>
    <item>
      <title>C Conditional &amp; Loops {}</title>
      <dc:creator>Frey</dc:creator>
      <pubDate>Thu, 24 Jun 2021 05:27:29 +0000</pubDate>
      <link>https://dev.to/fr3y/c-conditional-loops-2ack</link>
      <guid>https://dev.to/fr3y/c-conditional-loops-2ack</guid>
      <description>&lt;h2&gt; Hi, I'm Frey! also Known as Fr3yc0d3 &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BFexch7t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/http://images2.fanpop.com/image/photos/12800000/Ace-one-piece-12883119-304-200.gif"&gt;
&lt;/h2&gt;

&lt;p&gt;So i have put my hands again in cpp after a long time and what i mean after a long time is ? well i started coding in c while i was in 9th grade and said goodbye when i was in 11th grade but as now i'm in college and C is one of the important subject of mine, then it seems like it's the best thing to start making projects with it, and guess what i am already on it making vpn servers and working in Linux kernel [looks awesome right) ? &lt;/p&gt;

&lt;p&gt;Now back to the point i am going to share my exprience on this middle level language &lt;/p&gt;

&lt;h2&gt; Conditions &lt;/h2&gt; 

&lt;p&gt;so here it is let me ask you a quick question what you think of conditions if somebody ask you to define a word condition ?&lt;br&gt;
well whatever your answer is i am pretty sure you all are right in your way xD &lt;br&gt;
but let me explain this with a real life example shall i ? &lt;br&gt;
now here is a example let's see me (frey) want to buy a new laptop (a gaming one) so here is the conversation of me with dealer :&lt;/p&gt;

&lt;p&gt;well as i am going to buy a laptop with my own money then i must have to put some pre conditions in my mind about it looks speed design and lot's of space in it.&lt;/p&gt;

&lt;p&gt;now i will just put my conditions there to the dealer and he will show me models according to my need :) pretty easy Right ? &lt;/p&gt;

&lt;p&gt;well but what if that dealer ask you to talk him in codes (well that's impossible he will say that but what if he did ?)&lt;/p&gt;

&lt;p&gt;if he said that you have 2 options to use here:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;By using else if (statement) &lt;/li&gt;
&lt;li&gt;my fav one using Switch &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;now let's see a small example of both of them &lt;br&gt;
but first what is switch you asked ? &lt;br&gt;
A. its noting just a long else if condition in a short way Note:- this is not a official definition of switch i just created this right away !!&lt;/p&gt;

&lt;p&gt;example of if else &lt;/p&gt;

&lt;p&gt;int x = 2;&lt;br&gt;
if (x==1)&lt;br&gt;
   printf("x is 1");&lt;br&gt;
else if (x==2)&lt;br&gt;
   printf("x is 2");&lt;br&gt;
else if (x==3)&lt;br&gt;
   printf("x is 3");&lt;br&gt;
else&lt;br&gt;
   printf("Go home");&lt;/p&gt;

&lt;p&gt;Now lets replace this code with switch &lt;/p&gt;

&lt;p&gt;it will be like that &lt;/p&gt;

&lt;p&gt;int x = 2;&lt;br&gt;
switch(x)&lt;br&gt;
{&lt;br&gt;
case 1 : printf("x is 1");&lt;br&gt;
         break;&lt;br&gt;
case 2 : printf("x is 2");&lt;br&gt;
         break;&lt;br&gt;
case 3  : printf("x is 3");&lt;br&gt;
          break;&lt;/p&gt;

&lt;p&gt;default : printf("Go home");&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;all done pretty easy ha well i know now you will also use switch more often &lt;/p&gt;

&lt;p&gt;and if you want more you can see my 100daysofcode in c repo &lt;/p&gt;

&lt;p&gt;Here &lt;a href="https://github.com/Fr3y/100Daysofcode"&gt;https://github.com/Fr3y/100Daysofcode&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But wait before we go there are few things you have to keep in mind while dealing with switch &lt;/p&gt;

&lt;h1&gt;
  
  
  1 you can't duplicate the cases
&lt;/h1&gt;

&lt;h1&gt;
  
  
  2 only those expressions are allowed in switch which results in an integer ( for this one i recommend you to read my data type article)
&lt;/h1&gt;

&lt;h1&gt;
  
  
  3 float value is not allowed
&lt;/h1&gt;

&lt;h1&gt;
  
  
  4 variable expressions are not allowed but you can use micros freely (now what is micro its just defining things like #default y 2)
&lt;/h1&gt;

&lt;p&gt;i want to talk more about this all but i also have to take my college classes :( &lt;/p&gt;

&lt;p&gt;well see yaa keep Hacking :) &lt;/p&gt;

&lt;p&gt;Follow me :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/Fr3yc0d3"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ULB7yjZy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://img.shields.io/twitter/follow/Fr3yc0d3%3Fstyle%3Dsocial" alt="Twitter: Fr3yc0d3"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.linkedin.com/in/cybity/"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--txaY24Cp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://img.shields.io/badge/-cybity-blue%3Fstyle%3Dflat-square%26logo%3DLinkedin%26logoColor%3Dwhite%26link%3Dhttps://www.linkedin.com/in/cybity/" alt="Linkedin: Cybity"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/Fr3y"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zUCu_AAK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://img.shields.io/github/followers/Fr3y%3Flabel%3Dfollow%26style%3Dsocial" alt="GitHub Fr3y"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>c</category>
      <category>programming</category>
      <category>beginners</category>
      <category>cpp</category>
    </item>
  </channel>
</rss>
