[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-347399-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-347399-en":131},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","c-book-2nd-c-programming-language-guide","C - Book 2nd - C Programming Language Guide","","A structured learning guide to the C programming language, organized from foundational concepts to advanced topics. It covers variables, arithmetic and relational/logical operators, expressions, constants, input/output, arrays, and functions including argument passing and recursion. Subsequent chapters explain control flow mechanisms, pointers and address arithmetic, structures and related types, and comprehensive input/output including formatted I/O and file handling. It also introduces UNIX system interfaces and includes reference appendices for syntax conventions and the standard library.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/c-book-2nd-c-programming-language-guide/347399/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/c-book-2nd-c-programming-language-guide/347399.png","ImageObject",300,407,{"name":42,"@type":43},"Ezra","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-30","2026-09-22",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",18,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What does the tutorial introduction chapter cover first in learning C?","Question",{"text":63,"@type":64},"It starts with getting started, then introduces variables and arithmetic expressions, loop constructs like the for statement, constants, and basic character input/output, followed by arrays and functions.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How are pointers and arrays handled in the book?",{"text":68,"@type":64},"It explains pointers and addresses, pointer use in function arguments, address arithmetic, and how pointers relate to arrays, including multi-dimensional arrays and pointers to pointers.",{"name":70,"@type":61,"acceptedAnswer":71},"What topics are included in the UNIX system interface chapter?",{"text":72,"@type":64},"It covers file descriptors, low-level I/O via read and write, file operations like open/creat/close/unlink, random access with lseek, and several worked examples such as implementing fopen/getc and directory listing.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},347399,1790403342,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":145,"read_time":146,"preview_page_count":147,"preview_urls":148},1099514068035,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","2  \nPreface 6  \nPreface to the first edition 8  \nChapter 1-A Tutorial Introduction 9  \n1.1 Getting Started 9  \n1.2 Variables and Arithmetic Expressions 11  \n1.3 The for statement 15  \n1.4 Symbolic Constants 17  \n1.5 Character Input and Output 17  \n1.5.1 File Copying 18  \n1.5.2 Character Counting 19  \n1.5.3 Line Counting 20  \n1.5.4 Word Counting 21  \n1.6 Arrays 23  \n1.7 Functions 25  \n1.8 Arguments-Call by Value 28  \n1.9 Character Arrays 29  \n1.10 External Variables and Scope 31  \nChapter 2-Types, Operators and Expressions 35  \n2.1 Variable Names 35  \n2.2 Data Types and Sizes 35  \n2.3 Constants 36  \n2.4 Declarations 38  \n2.5 Arithmetic Operators 39  \n2.6 Relational and Logical Operators 39  \n2.7 Type Conversions 40  \n2.8 Increment and Decrement Operators 43  \n2.9 Bitwise Operators 45  \n2.10 Assignment Operators and Expressions 46  \n2.11 Conditional Expressions 47  \n2.12 Precedence and Order of Evaluation 48  \nChapter 3-Control Flow 50  \n3.1 Statements and Blocks 50  \n3.2 If-Else 50  \n3.3 Else-If 51  \n3.4 Switch 52  \n3.5 Loops-While and For 53  \n3.6 Loops-Do-While 56  \n3.7 Break and Continue 57  \n3.8 Goto and labels 57  \nChapter 4-Functions and Program Structure 59  \n4.1 Basics of Functions 59  \n4.2 Functions Returning Non-integers 61  \n4.3 External Variables 63  \n4.4 Scope Rules 68  \n4.5 Header Files 69  \n4.6 Static Variables 70  \n4.7 Register Variables 71  \n4.8 Block Structure 71  \n4.9 Initialization 72  \n4.10 Recursion 73  \n4.11 The C Preprocessor 74  \n4.11.1 File Inclusion 75  \n4.11.2 Macro Substitution 75  \n3  \n4.11.3 Conditional Inclusion 77  \nChapter 5-Pointers and Arrays 78  \n5.1 Pointers and Addresses 78  \n5.2 Pointers and Function Arguments 79  \n5.3 Pointers and Arrays 81  \n5.4 Address Arithmetic 84  \n5.5 Character Pointers and Functions 87  \n5.6 Pointer Arrays; Pointers to Pointers 89  \n5.7 Multi-dimensional Arrays 92  \n5.8 Initialization of Pointer Arrays 93  \n5.9 Pointers vs. Multi-dimensional Arrays 94  \n5.10 Command-line Arguments 95  \n5.11 Pointers to Functions 98  \n5.12 Complicated Declarations 100  \nChapter 6-Structures 105  \n6.1 Basics of Structures 105  \n6.2 Structures and Functions 107  \n6.3 Arrays of Structures 109  \n6.4 Pointers to Structures 112  \n6.5 Self-referential Structures 113  \n6.6 Table Lookup 117  \n6.7 Typedef 119  \n6.8 Unions 120  \n6.9 Bit-fields 121  \nChapter 7-Input and Output 124  \n7.1 Standard Input and Output 124  \n7.2 Formatted Output-printf 125  \n7.3 Variable-length Argument Lists 127  \n7.4 Formatted Input-Scanf 128  \n7.5 File Access 130  \n7.6 Error Handling-Stderr and Exit 132  \n7.7 Line Input and Output 134  \n7.8 Miscellaneous Functions 135  \n7.8.1 String Operations 135  \n7.8.2 Character Class Testing and Conversion 135  \n7.8.3 Ungetc 135  \n7.8.4 Command Execution 135  \n7.8.5 Storage Management 136  \n7.8.6 Mathematical Functions 136  \n7.8.7 Random Number generation 136  \nChapter 8-The UNIX System Interface 138  \n8.1 File Descriptors 138  \n8.2 Low Level I/O-Read and Write 139  \n8.3 Open, Creat, Close, Unlink 140  \n8.4 Random Access-Lseek 142  \n8.5 Example-An implementation ofFopen and Getc 142  \n8.6 Example-Listing Directories 145  \n8.7 Example-A Storage Allocator 149  \nAppendix A-Reference Manual 154  \nA.1 Introduction 154  \nA.2 Lexical Conventions 154  \nA.2.1 Tokens 154  \nA.2.2 Comments 154  \n4  \nA.2.3 Identifiers 154  \nA.2.4 Keywords 154  \nA.2.5 Constants 155  \nA.2.6 String Literals 156  \nA.3 Syntax Notation 156  \nA.4 Meaning of Identifiers 157  \nA.4.1 Storage Class 157  \nA.4.2 Basic Types 157  \nA.4.3 Derived types 158  \nA.4.4 Type Qualifiers 158  \nA.5 Objects and Lvalues 158  \nA.6 Conversions 159  \nA.6.1 Integral Promotion 159  \nA.6.2 Integral Conversions 159  \nA.6.3 Integer and Floating 159  \nA.6.4 Floating Types 159  \nA.6.5 Arithmetic Conversions 159  \nA.6.6 Pointers and Integers 160  \nA.6.7 Void 160  \nA.6.8 Pointers to Void 161  \nA.7 Expressions 161  \nA.7.1 Pointer Conversion 161  \nA.7.2 Primary Expressions 161  \nA.7.3 Postfix Expressions 162  \nA.7.4 Unary Operators 164  \nA.7.5 Ca","cbCaibLPKYMaD8M5","https://ap.wps.com/l/cbCaibLPKYMaD8M5","pdf",1650089,217,"English","# Preface\n## Preface to the first edition\n# Chapter 1 - A Tutorial Introduction\n## Getting Started\n## Variables and Arithmetic Expressions\n## The for statement\n## Symbolic Constants\n## Character Input and Output\n## File Copying\n## Character Counting\n## Line Counting\n## Word Counting\n## Arrays\n## Functions\n## Arguments - Call by Value\n## Character Arrays\n## External Variables and Scope\n# Chapter 2 - Types, Operators and Expressions\n## Variable Names\n## Data Types and Sizes\n## Constants\n## Declarations\n## Arithmetic Operators\n## Relational and Logical Operators\n## Type Conversions\n## Increment and Decrement Operators\n## Bitwise Operators\n## Assignment Operators and Expressions\n## Conditional Expressions\n## Precedence and Order of Evaluation\n# Chapter 3 - Control Flow\n## Statements and Blocks\n## If-Else\n## Else-If\n## Switch\n## Loops - While and For\n## Loops - Do-While\n## Break and Continue\n## Goto and labels\n# Chapter 4 - Functions and Program Structure\n## Basics of Functions\n## Functions Returning Non-integers\n## External Variables\n## Scope Rules\n## Header Files\n## Static Variables\n## Register Variables\n## Block Structure\n## Initialization\n## Recursion\n## The C Preprocessor\n## File Inclusion\n## Macro Substitution\n## Conditional Inclusion\n# Chapter 5 - Pointers and Arrays\n## Pointers and Addresses\n## Pointers and Function Arguments\n## Pointers and Arrays\n## Address Arithmetic\n## Character Pointers and Functions\n## Pointer Arrays; Pointers to Pointers\n## Multi-dimensional Arrays\n## Initialization of Pointer Arrays\n## Pointers vs. Multi-dimensional Arrays\n## Command-line Arguments\n## Pointers to Functions\n## Complicated Declarations\n# Chapter 6 - Structures\n## Basics of Structures\n## Structures and Functions\n## Arrays of Structures\n## Pointers to Structures\n## Self-referential Structures\n## Table Lookup\n## Typedef\n## Unions\n## Bit-fields\n# Chapter 7 - Input and Output\n## Standard Input and Output\n## Formatted Output - printf\n## Variable-length Argument Lists\n## Formatted Input - Scanf\n## File Access\n## Error Handling - Stderr and Exit\n## Line Input and Output\n## Miscellaneous Functions\n## String Operations\n## Character Class Testing and Conversion\n## Ungetc\n## Command Execution\n## Storage Management\n## Mathematical Functions\n## Random Number generation\n# Chapter 8 - The UNIX System Interface\n## File Descriptors\n## Low Level I/O - Read and Write\n## Open, Creat, Close, Unlink\n## Random Access - Lseek\n## Example - An implementation of Fopen and Getc\n## Example - Listing Directories\n## Example - A Storage Allocator\n# Appendix A - Reference Manual\n## Introduction\n## Lexical Conventions\n## Tokens\n## Comments\n## Identifiers\n## Keywords\n## Constants\n## String Literals\n## Syntax Notation\n## Meaning of Identifiers\n## Storage Class\n## Basic Types\n## Derived types\n## Type Qualifiers\n## Objects and Lvalues\n## Conversions\n## Integral Promotion\n## Integral Conversions\n## Integer and Floating\n## Floating Types\n## Arithmetic Conversions\n## Pointers and Integers\n## Void\n## Pointers to Void\n## Expressions\n## Pointer Conversion\n## Primary Expressions\n## Postfix Expressions\n## Unary Operators\n## Casts\n## Multiplicative Operators\n## Additive Operators\n## Shift Operators\n## Relational Operators\n## Equality Operators\n## Bitwise AND Operator\n## Bitwise Exclusive OR Operator\n## Bitwise Inclusive OR Operator\n## Logical AND Operator\n## Logical OR Operator\n## Conditional Operator\n## Assignment Expressions\n## Comma Operator\n## Constant Expressions\n## Declarations\n## Storage Class Specifiers\n## Type Specifiers\n## Structure and Union Declarations\n## Enumerations\n## Declarators\n## Meaning of Declarators\n## Initialization\n## Type names\n## Typedef\n## Type Equivalence\n## Statements\n## Labeled Statements\n## Expression Statement\n## Compound Statement\n## Selection Statements\n## Iteration Statements\n## Jump statements\n## External Declarations\n## Function Definitions\n## External Declarations\n## Scope and Linkage\n## Lexical Scope\n## Linkage\n## Preprocessing\n## Trigraph Sequences\n## Line Splicing\n## Macro Definition and Expansion\n## File Inclusion\n## Conditional Compilation\n## Line Control\n## Error Generation\n## Pragmas\n## Null directive\n## Predefined names\n## Grammar\n# Appendix B - Standard Library\n## Input and Output: \u003Cstdio.h>\n## File Operations\n## Formatted Output\n## Formatted Input\n## Character Input and Output Functions\n## Direct Input and Output Functions\n## File Positioning Functions\n## Error Functions\n## Character Class Tests: \u003Cctype.h>\n## String Functions: \u003Cstring.h>\n## Mathematical Functions: \u003Cmath.h>\n## Util","[{\"question\":\"What does the tutorial introduction chapter cover first in learning C?\",\"answer\":\"It starts with getting started, then introduces variables and arithmetic expressions, loop constructs like the for statement, constants, and basic character input/output, followed by arrays and functions.\"},{\"question\":\"How are pointers and arrays handled in the book?\",\"answer\":\"It explains pointers and addresses, pointer use in function arguments, address arithmetic, and how pointers relate to arrays, including multi-dimensional arrays and pointers to pointers.\"},{\"question\":\"What topics are included in the UNIX system interface chapter?\",\"answer\":\"It covers file descriptors, low-level I/O via read and write, file operations like open/creat/close/unlink, random access with lseek, and several worked examples such as implementing fopen/getc and directory listing.\"}]","C - Book 2nd - C Programming Language Guide | PDF",1790066784,547,22,[149,153,157,161,165,169,173,177,181,185,189,194,199,204,209,214,219,224,228,232,236,241],{"page_no":22,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/2c494eb33e32187248c112c53297f186.webp",983,1413,{"page_no":26,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/66c931818719c52bdd2c2731b0100c58.webp",982,1387,{"page_no":30,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/273465cb0e40ee5e03e6d0f2890ced30.webp",981,1386,{"page_no":33,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/62d9f6b5958414fbff09a583b40b1263.webp",980,1384,{"page_no":97,"url":166,"width":167,"height":168},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/31432e18ac936260b7ac8c6f7284ee71.webp",979,1383,{"page_no":102,"url":170,"width":171,"height":172},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b7e4b5d5b04d5f8c7cc32a541fa557fb.webp",978,1382,{"page_no":106,"url":174,"width":175,"height":176},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/e273a96a00ef1f668188674a8ce8ad77.webp",977,1380,{"page_no":111,"url":178,"width":179,"height":180},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/089df0fa02c8b201f92e13f3c1b99ea7.webp",976,1379,{"page_no":116,"url":182,"width":183,"height":184},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b423ff0b0ed5a6935682847af8b52d3e.webp",975,1377,{"page_no":124,"url":186,"width":187,"height":188},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/63d62662bfa280b65cf1043156b4c2fd.webp",974,1376,{"page_no":190,"url":191,"width":192,"height":193},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f14acd791803d57af76a000ebff117c0.webp",973,1374,{"page_no":195,"url":196,"width":197,"height":198},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/232086ebe10cd2ca8fc59f6621965c1f.webp",972,1373,{"page_no":200,"url":201,"width":202,"height":203},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/4daac87bb809ca7183c4bdc92e19c0b0.webp",971,1372,{"page_no":205,"url":206,"width":207,"height":208},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/57b0a5b58037a1ae362a0d6769df395c.webp",970,1370,{"page_no":210,"url":211,"width":212,"height":213},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/08382557c493f83bdc6005b35a4128d5.webp",969,1369,{"page_no":215,"url":216,"width":217,"height":218},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/244dd09604c48a616829687547e81456.webp",968,1367,{"page_no":220,"url":221,"width":222,"height":223},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/57cd3f30215a92b70c742f795bebf5d0.webp",967,1366,{"page_no":55,"url":225,"width":226,"height":227},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/2128190d51112db02b13cd9140faaad5.webp",966,1365,{"page_no":128,"url":229,"width":230,"height":231},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/4cb7a9b80c15fe5af58072a908dd5f82.webp",965,1363,{"page_no":118,"url":233,"width":234,"height":235},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/33a8ad336a2b5e99a2db2f64fcdecdc1.webp",964,1362,{"page_no":237,"url":238,"width":239,"height":240},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/89f4022e2029326f3fddd8499619bdbd.webp",963,1360,{"page_no":147,"url":242,"width":243,"height":244},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f8a31d67bd6847fb0ba5b5834b5536a5.webp",962,1359]