{"id":33,"date":"2017-12-18T11:09:52","date_gmt":"2017-12-18T11:09:52","guid":{"rendered":"http:\/\/lotusithub.com\/blog\/?page_id=33"},"modified":"2017-12-18T11:09:52","modified_gmt":"2017-12-18T11:09:52","slug":"2017-12-18-c-programming","status":"publish","type":"page","link":"https:\/\/lotusithub.com\/blog\/2017-12-18-c-programming\/","title":{"rendered":"C Programing"},"content":{"rendered":"<p><a href=\"http:\/\/lotusithub.com\/c-cpp-training-course-pune.html\">C is a programming language <\/a> developed at AT&amp;T\u2019s Bell Laboratories of USA in 1972.It was designed and written by a man named Dennis Ritchie.<br \/>\nThere were many languages discovered before C like BCPL IN 1969,B in 1970 but all were failed in the long run.<\/p>\n<h3>Facts about C<\/h3>\n<p>\u2022 C was invented to write an operating system called UNIX.<br \/>\n\u2022 The language was formalized in 1988 by the American National Standard Institute (ANSI).<br \/>\n\u2022 Today\u2019s most popular Linux OS and RDBMS MySQL have been written in C.<br \/>\n\u2022 Iphone ,Twitter website and most of the antiviruses are also written in C.<br \/>\n\u2022 Turbo C++ is a popular compiler for C language.<\/p>\n<h3>Features of C<\/h3>\n<p>\u2022 C is a middle-level programming language.<br \/>\n\u2022 C is the mother level of other programming languages.<br \/>\n\u2022 C is a case-sensitive language.<br \/>\n\u2022 C is a procedure-oriented language.<br \/>\n\u2022 C supports top to bottom process.<br \/>\nUses of C in daily life<\/p>\n<p>\u2022 Major parts of operating systems like Windows,UNIX,Linux and Android are written in C.<br \/>\n\u2022 Mobile devices like Smartphones and tablets are getting smarter due to programs and operating systems which are builded by C language.<br \/>\n\u2022 Most of the 3D computer games are fast just<br \/>\nBecause of C which is the builder of most of the gaming frameworks.<\/p>\n<h3>Getting Started With C<\/h3>\n<p>\u2022 Preprocessor-The preprocessor offers several features called preprocessor directives.Each of these begins with a # symbol and are often placed at the beginning of the program.<br \/>\n\u2022 Header file-is a library file which contains all the functions.<br \/>\n# include is the preprocessor directive for C and C++,which contains all header files which contains functions.<br \/>\nis a type of header file which means \u2018standard input and output\u2019.It contains all the functions like printf ,scanf.<br \/>\nis a type of header file which means \u2018console input and output\u2019 .It contains all the functions like getch();clrscr().<br \/>\n\u2018.h\u2019 is the extension for header files.<br \/>\nKeywords-There are 32 keywords reserved in C language.<br \/>\n\u2018void\u2019 is a keyword which does not return anything.<br \/>\nmain() means startup of a code.<br \/>\n\u2018printf\u2019 is used to get the output whereas\u2019 scanf\u2019 is used to give the input with respect to a certain function and a symbol of &amp;(ampersand) is used with the variable inside the \u2018scanf\u2019 function.<br \/>\n\u2018comment\u2019 is used to hide the line.<\/p>\n<h3>Symbol of comment-\u2018\/\/\u2019<\/h3>\n<p>\u2018getch()\u2019-is used to identify the function.<br \/>\n&#8211; Is used to hold the console screen.<br \/>\n{-\u2018start\u2019<br \/>\n}-\u2018closure of the source code\u2019<\/p>\n<h3>Data Type<\/h3>\n<p>Data type refers to an extensive system used for declaring variables or functions of different types.Data type is used for memory allocation which stores some data.<\/p>\n<table style=\"border: 1px solid black;\">\n<tbody>\n<tr>\n<td width=\"101\">Nature<\/td>\n<td width=\"90\">Values<\/td>\n<td width=\"91\">Datatype<\/td>\n<td width=\"97\">Size<\/td>\n<td width=\"172\">Range<\/td>\n<td width=\"86\">Format Specifire<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">Integer<\/td>\n<td width=\"90\">10<\/td>\n<td width=\"91\">int<\/td>\n<td width=\"97\">2 bytes<\/td>\n<td width=\"172\">-32768to32768<\/td>\n<td width=\"86\">%d<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">Decimal<\/td>\n<td width=\"90\">22.24<\/td>\n<td width=\"91\">float<\/td>\n<td width=\"97\">4 bytes<\/td>\n<td width=\"172\">-3.4*e^10^(-8) to 3.4*e^10(8)<\/td>\n<td width=\"86\">%f<\/td>\n<\/tr>\n<tr>\n<td width=\"101\">Character<\/td>\n<td width=\"90\">\u2018a\u2019<\/td>\n<td width=\"91\">char<\/td>\n<td width=\"97\">1 byte<\/td>\n<td width=\"172\">-128 to 127<\/td>\n<td width=\"86\">% c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Some symbols-\\t \u2013used for space<br \/>\n\\n-used for newline<\/p>\n<h3>Operators<\/h3>\n<p>An operator is a symbol that tells the compiler to perform specific mathematical or logical functions.<br \/>\n<b>Types of operators-<\/b><\/p>\n<ol>\n<li>Arithmetic Operators- +,-,*,\/<\/li>\n<li>Relational Operators- a&lt;b,a&gt;b,a&lt;=b,a&gt;=b,a==b<\/li>\n<li>Logical Operators-AND, OR, NOT<\/li>\n<li>Bitwise Operators-&gt;&gt; which means if 9&gt;&gt;2;9\/2*2=2<br \/>\n&lt;&lt; which means if 2&lt;&lt;0;2*2*0=2<\/li>\n<li>Assignment Operators-<br \/>\nIf a=10 and a=b implies that \u2018b\u2019 is assigned to \u2018a\u2019(right to left).<br \/>\nAlso , a+ =a+b<\/li>\n<li>Procedure Association-<br \/>\na=10+20-5*7\/9%2;<br \/>\nb=100*100+100*100;<\/li>\n<li>Increment or Decrement-<\/li>\n<li>These are of two types-<br \/>\nPre increment (or pre decrement) and Post decrement(or post decrement).<\/p>\n<h4><a href=\"http:\/\/lotusithub.com\/c-cpp-training-course-pune.html\"> C++ Classes in Pune<\/a><\/h4>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>C is a programming language developed at AT&amp;T\u2019s Bell Laboratories of USA in 1972.It was&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-33","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lotusithub.com\/blog\/wp-json\/wp\/v2\/pages\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lotusithub.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lotusithub.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lotusithub.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lotusithub.com\/blog\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":0,"href":"https:\/\/lotusithub.com\/blog\/wp-json\/wp\/v2\/pages\/33\/revisions"}],"wp:attachment":[{"href":"https:\/\/lotusithub.com\/blog\/wp-json\/wp\/v2\/media?parent=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}