[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-347402-105":59,"doc-detail-347402-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","programming-in-ansic-1-overview-of-c-introduction","Programming in ANSIC - 1 Overview of C - Introduction","","Programming in ANSIC provides structured learning material for the C programming language, emphasizing core language concepts and practical programming samples. The document includes publication and edition information, copyright and distribution notices, and a detailed contents outline. Topics cover C fundamentals such as history and basic structure, sample programs (printing messages, arithmetic, interest calculation, subroutines, math functions), programming style, and platform execution environments. It further outlines major chapters on constants, variables, data types, operators and expressions, input/output operations, and decision-making with branching and looping.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/programming-in-ansic-1-overview-of-c-introduction/347402/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/programming-in-ansic-1-overview-of-c-introduction/347402.png","ImageObject",300,407,{"name":92,"@type":93},"River Wang","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-09-22",true,{"@type":102,"interactionType":103,"userInteractionCount":52},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does the document focus on?","Question",{"text":112,"@type":113},"It focuses on learning the C programming language using an ANSIC-based approach, organized into chapters with concepts and sample programs.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What topics are covered in the early chapters?",{"text":117,"@type":113},"The contents include an overview of C (history, importance, basic structure, programming style, and execution environments) plus core fundamentals like constants, variables, and data types.",{"name":119,"@type":110,"acceptedAnswer":120},"Does the document include practice materials?",{"text":121,"@type":113},"Yes. It lists review questions and programming exercises across the sections shown in the contents outline.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},347402,1790505749,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":52,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":146,"preview_urls":147},1099514067438,"https://ap-avatar.wpscdn.com/avatar/100002539ee87300030?x-image-process=image/resize,m_fixed,w_180,h_180&k=1780474512215547542","E BALAGURUSAMY  \nPROGRAMMING INANSI  \nTata McGraw-Hill  \nPublished by Tata McGraw Hill Education Private Limited,7 West Patel Nagar,New Delhi 110008  \nProgramming in ANSIC,5e  \nCopyright ◎2011,2007.by Tata McGraw Hill Education Private Limited  \nFirst reprint 2010  \nDQLARRYZRABCC  \nNo part of this publication may be reproduced or distributed in any form or by any means,electronic,mechanical,photocopying,recording,or otherwise or stored in a database or retrieval system without the prior written permission ofthe publishers.The program listings (ifany)may be entered,stored and executed in a computer system,but they may notbe reproduced for publication.  \nThis edition can be exported from India only by the publishers,Tata McGraw Hill Education Private Limited.ISBN(13 digits):978-0-07-068182-8ISBN(10 digits):0-07-068182-1  \nVice President and Managing Director—McGraw-Hill Education:Asia Pacific Region:Ajay Shukla  \nHead—Higher Education Publishing and Marketing:Vibha Mahajan  \nManager:Sponsoring—SEM&Tech Ed:Shalini Jha  \nAsst Sponsoring Editor:Surabhi Shukla  \nDevelopment Editor:Surbhi Suman  \nExecutive—Editorial Services:Sohini Mukherjee  \nJr Production Manager:Anjali Razdan  \nDy Marketing Manager—SEM&Tech Ed:Biju Ganesan  \nGeneral Manager—Production:Rajender PGhansela  \nAsst General Manager—Production:BLDogra  \nInformation contained in this work has been obtainedby Tata McGraw-Hill,from sources believed to be reliable.However,neither Tata McGraw-Hill nor its authors guarantee the accuracy or completeness of any information published herein,and neither Tata McGraw-Hill nor its authors shall be responsible for any errors,omissions,or damages arising outof use of this information.This work is published with the understanding that Tata McGraw-Hill and its authors aresupplying information but are not attempting to render engineering or other professional services.If such services arerequired,the assistance of an appropriate professional should be sought.  \nTypeset at Text-0-Graphics,B1/56 Arawali Apartment,Sector 34,Noida 201301 and  \nprinted at Gopsons,A-2&3,Sector-64,Noida,U.P.-201301  \nCover Printer:Gopsons  \nContents  \nPreface to the Fifth Edition  \n1 Overview of C  \n1.1 History of C 1  \n1.2 Importance of C 3  \n1.3 Sample Program 1:Printing a Message 3  \n1.4                    Sample Program 2:Adding Two Numbers 6  \n1.5                   Sample Program 3:Interest Calculation 8  \n1.6                  Sample Program 4:Use of Subroutines 10  \n1.7Sample Program 5:Use of Math Functions11  \n1.8 Basic Structure of C Programs 12  \n1.9          Programming Style 14  \n1.10Executing a ℃'Program 14  \n1.11        Unix System 16  \n1.12         Ms-Dos System 18  \nReview Questions 19Programming Exercises 20  \n1  \n\n| 2   |  Constants,Variables,and Data Types   |  |  |\n| --- | --- | --- | --- |\n|  | 2.1    | Introduction 23   |  |\n|  | 2.2    | Character Set 23   |  |\n|  | 2.3   | C Tokens 25   |  |\n|  | 2.4   | Keywords and Identifiers 25   |  |\n|  | 2.5   | Constants 26   |  |\n|  | 2.6   | Variables 30   |  |\n|  | 2.7   | Data Types 31   |  |\n|  | 2.8   | Declaration of Variables 34   |  |\n|  | 2.9   | Declaration of Storage Class 37   |  |\n|  | 2.10   | Assigning Values to Variables 38   |  |\n|  | 2.11   | Defining Symbolic Constants 44   |  |\n|  | 2.12   | Declaring a Variable as Constant 45   |  |\n|  | 2.13   | Declaring a Variable as Volatile 45   |  |\n\nvi  \n2.14 Overflow and Underflow of Data 46  \nReview Questions 49Programming Exercises 51  \n3 Operators and Expressions  \n3.1 Introduction 52  \n3.2 Arithmetic Operators 52  \n3.3           Relational Operators 55  \n3.4 Logical Operators 57  \n3.5            Assignment Operators 57  \n3.6                  Increment and Decrement Operators 59  \n3.7            Conditional Operator 61  \n3.8            Bitwise Operators 61  \n3.9            Special Operators 61  \n3.10             Arithmetic Expressions 63  \n3.11Evaluation of Expressions 64  \n3.12Precedence of Arithmetic Operators 65  \n3.13            ","cbCaicGAYLLu73Ir","https://ap.wps.com/l/cbCaicGAYLLu73Ir","pdf",20859214,462,"English","# Preface to the Fifth Edition\n# 1 Overview of C\n## History of C\n## Importance of C\n## Sample Program 1: Printing a Message\n## Sample Program 2: Adding Two Numbers\n## Sample Program 3: Interest Calculation\n## Sample Program 4: Use of Subroutines\n## Sample Program 5: Use of Math Functions\n## Basic Structure of C Programs\n## Programming Style\n## Executing a C Program\n## Unix System\n## Ms-Dos System\n# Review Questions\n# Programming Exercises","[{\"question\":\"What does the document focus on?\",\"answer\":\"It focuses on learning the C programming language using an ANSIC-based approach, organized into chapters with concepts and sample programs.\"},{\"question\":\"What topics are covered in the early chapters?\",\"answer\":\"The contents include an overview of C (history, importance, basic structure, programming style, and execution environments) plus core fundamentals like constants, variables, and data types.\"},{\"question\":\"Does the document include practice materials?\",\"answer\":\"Yes. It lists review questions and programming exercises across the sections shown in the contents outline.\"}]","Programming in ANSIC - 1 Overview of C - Introduction | PDF",1790066794,1164,47,[148,152,156,160,164,168,172,176,179,183,187,191,196,201,206,211,216,221,226,230,234,239,243,247,252,257,262,267,271,276,280,285,290,294,298,303,307,311,316,321,324,328,333,338,342,347,352],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/16db75ff5b67b1f2b8e9a713355e0826.webp",983,1338,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/1bc5c97f2537e2afdce50b384063ae21.webp",982,1336,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/96c7b7cef7f252a0173c2daa8958a259.webp",981,1340,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f2c66321c4955c59350a6fc9b11cddec.webp",980,1332,{"page_no":24,"url":165,"width":166,"height":167},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/511e777f3e4bee1bf066a9a2391a242d.webp",979,1335,{"page_no":29,"url":169,"width":170,"height":171},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/9392c6483bc95ea6a60be729c383d5f0.webp",978,1321,{"page_no":34,"url":173,"width":174,"height":175},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/10ea241204c6260cb20707253f728fed.webp",977,1333,{"page_no":39,"url":177,"width":178,"height":175},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/2112175c529ff29bd7bb52291fcee955.webp",976,{"page_no":44,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/93a0cc31f0252bfa65ea9a69db1469f8.webp",975,1325,{"page_no":52,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d58e32078f0e9a8cfb2d01a3c3a41a98.webp",974,1328,{"page_no":188,"url":189,"width":190,"height":182},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/58652ff73f70ab63ea19ce4c80fa0395.webp",973,{"page_no":192,"url":193,"width":194,"height":195},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/aef05cb753566c7cb0a640d07e502d9b.webp",972,1323,{"page_no":197,"url":198,"width":199,"height":200},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/47799290b6904b8f0f7460c9c805b5ad.webp",971,1324,{"page_no":202,"url":203,"width":204,"height":205},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d19b86e60272e19fcc093870e4359e6e.webp",970,1314,{"page_no":207,"url":208,"width":209,"height":210},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/9e79063a26b89adf81049901d270e56c.webp",969,1322,{"page_no":212,"url":213,"width":214,"height":215},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7ec35ec662ed361d1599061d30611fb6.webp",968,1317,{"page_no":217,"url":218,"width":219,"height":220},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/36a5f46fd469e30557bd30446db892bd.webp",967,1318,{"page_no":222,"url":223,"width":224,"height":225},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/dc382b6d7eba532dda2d7427824af382.webp",966,1312,{"page_no":56,"url":227,"width":228,"height":229},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/18e9ff618eb36571d1acf49a85b3602c.webp",965,1319,{"page_no":46,"url":231,"width":232,"height":233},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/04e107271bbc73acc8e0dcc25664948f.webp",964,1309,{"page_no":235,"url":236,"width":237,"height":238},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6bea53b3f0ffea34a6291b51c3f8f7f4.webp",963,1316,{"page_no":240,"url":241,"width":242,"height":225},22,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/69670f7f62eb935316809435377b22bd.webp",962,{"page_no":244,"url":245,"width":246,"height":205},23,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/05dbc7cf9c8baebd098e55877cf7769c.webp",961,{"page_no":248,"url":249,"width":250,"height":251},24,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/dba8acc76c805153f80c02fc4f4b32fd.webp",960,1301,{"page_no":253,"url":254,"width":255,"height":256},25,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/ec911ae91c2cc0f352b7e4b3f58be430.webp",959,1306,{"page_no":258,"url":259,"width":260,"height":261},26,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/3f141a84322ee98c32262e005f3dddf2.webp",958,1308,{"page_no":263,"url":264,"width":265,"height":266},27,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/dc57477780124da707e1e4bcf03a7407.webp",957,1300,{"page_no":268,"url":269,"width":270,"height":256},28,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/48df9cad682b8ef81e69d986e9c96c6b.webp",956,{"page_no":272,"url":273,"width":274,"height":275},29,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/58e0097812c9ca97da74e237b79de3ed.webp",955,1299,{"page_no":41,"url":277,"width":278,"height":279},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/3d3157aa042e04473ef11934270bd932.webp",954,1293,{"page_no":281,"url":282,"width":283,"height":284},31,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/23c245e658f92d1b18d87bc1da64e64e.webp",953,1296,{"page_no":286,"url":287,"width":288,"height":289},32,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/5f9d2c080114df5b62cb28b47738212c.webp",952,1292,{"page_no":291,"url":292,"width":293,"height":284},33,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/4f72c2fd1d1dcb7e1d045bf0aba41f09.webp",951,{"page_no":295,"url":296,"width":297,"height":284},34,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/fc77347fcdf1a14bc2bd12d2e47c27e1.webp",950,{"page_no":299,"url":300,"width":301,"height":302},35,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/0bf07aea1c7d39594c44a999375f0d93.webp",949,1291,{"page_no":304,"url":305,"width":306,"height":289},36,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/530a09d83397ec83d53c20de7417eda6.webp",948,{"page_no":308,"url":309,"width":310,"height":302},37,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/c5ca712b48f7bc5a713b50df8766a201.webp",947,{"page_no":312,"url":313,"width":314,"height":315},38,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/c765bd31815a464189a73399194c5945.webp",946,1280,{"page_no":317,"url":318,"width":319,"height":320},39,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/ef3ff690309c4ff09eb4b0de09534666.webp",945,1288,{"page_no":36,"url":322,"width":323,"height":320},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/9976757c66a81923c21fd8a9cd75ef19.webp",944,{"page_no":325,"url":326,"width":327,"height":320},41,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/2a444eabfa4accdd31220dbf09d0510b.webp",943,{"page_no":329,"url":330,"width":331,"height":332},42,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/daf8059ea7cebca4b7288e5cd4093dde.webp",942,1284,{"page_no":334,"url":335,"width":336,"height":337},43,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/2c51556cc35a12d41ecf5cca6ba4a46a.webp",941,1279,{"page_no":339,"url":340,"width":341,"height":337},44,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/27999c791056b6a221a97cb8a5100118.webp",940,{"page_no":343,"url":344,"width":345,"height":346},45,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/5d9883bc61b42b9d2789e2916d971b4a.webp",939,1274,{"page_no":348,"url":349,"width":350,"height":351},46,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6ab524d234c7c6401ca18dbe2fd55b43.webp",938,1276,{"page_no":146,"url":353,"width":354,"height":355},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6e8acaf3a73f8fba5b3ff4595fe24d2b.webp",937,1273]