[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-347393-105":59,"doc-detail-347393-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","intro-to-c-programming-course-talk-slides","Intro to C Programming - Course Talk Slides","","Intro to C Programming is a lecture slide deck covering the basics of the C language and how a program is structured and compiled. The material introduces C as a general-purpose, compiled language, explains what a compiler does, and shows how header inclusion with #include and the C preprocessor works. It walks through a simple program using main, variable declaration, curly-brace scope, semicolon-terminated statements, and the printf function with formatted output, along with references to associated slides and code in a repository.",{"@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/intro-to-c-programming-course-talk-slides/347393/",{"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/intro-to-c-programming-course-talk-slides/347393.png","ImageObject",300,407,{"name":92,"@type":93},"Levi","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-09-22",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What makes C a compiled language in this talk?","Question",{"text":112,"@type":113},"The slides explain that a compiler converts high-level code such as C into machine code.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What is the role of #include in the simple C program?",{"text":117,"@type":113},"It is described as a preprocessor directive that tells the compiler to include the contents of the header file, such as those from stdio.h.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the program start running in C?",{"text":121,"@type":113},"Execution begins in the main function, declared as int main() in the example.","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},347393,1790461650,{"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":39,"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":29,"preview_urls":146},7971461740909,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Intro to C Programming  \nTom Papatheodore  \nSystem Acceptance & User Environments Group Oak Ridge Leadership Computing Facility (OLCF) Oak Ridge National Laboratory (ORNL)  \nJanuary 20, 2022  \nORNL is managed by UT-Battelle LLC for the US Department of Energy  \n2  \nAssociated Materials for this Talk  \nThe slides, code examples, and exercises can be found in the intro_to_c directory of the repository for this course:  \n[https://github.com/olcf/foundational_hpc_skills](https://github.com/olcf/foundational_hpc_skills)  \nOpen slide master to edit  \n3  \nC Programming Language  \n• General-purpose programming language initially developed by Dennis Ritchie at Bell Laboratories  \n• Compiled Language  \n– A compiler is a program used to convert high-level code (like C) into machine code  \n• Many operating systems, as well as Perl, PHP, Python, and Ruby, are written in C.  \nOpen slide master to edit  \n4  \nA Simple C Program (01   simple   c   program/ simple .c)  \n\\#include \u003Cstdio .h>  \nint main(){  \nint a = 3;  \nprintf (“The value of this integer is %d\\n”, a);  \nreturn 0 ;  \n}  \n Open slide master to edit  \n5  \nA Simple C Program  \n\\#include \u003Cstdio .h>  \nC preprocessor directive telling the compiler to include contents of the header file in angle brackets .  \nint main(){  \nint a = 3;  \nprintf (“The value of this integer is %d\\n”, a);  \nreturn 0 ;  \n}  \n Open slide master to edit  \n6  \nA Simple C Program  \n\\#include \u003Cstdio .h> int main(){  \nDeclaration of a function called main, which is where execution of the program begins . The“int” indicates that the function will return an integer value .  \nMore on functions later…  \nint a = 3;  \nprintf (“The value of this integer is %d\\n”, a);  \nreturn 0 ;  \n}  \n Open slide master to edit  \n7  \nA Simple C Program  \n\\#include \u003Cstdio .h>  \nThese curly braces indicate the beginning and end of the main function .  \nint main(){  \nint a = 3;  \nprintf (“The value of this integer is %d\\n”, a);  \nreturn 0 ;  \n}  \nOpen slide master to edit  \n8  \nA Simple C Program  \n\\#include \u003Cstdio .h> int main(){  \nint a = 3;  \nDefines an integer called “a” and assigns it a value of 3.  \nMore on data types soon…  \nprintf (“The value of this integer is %d\\n”, a);  \nreturn 0 ;  \n}  \nOpen slide master to edit  \n9  \nA Simple C Program  \n\\#include \u003Cstdio .h> int main(){  \nint a = 3;  \nA semicolon is used to indicate the end of each statement.  \nprintf (“The value of this integer is %d\\n”, a);  \nreturn 0 ;  \n}  \nOpen slide master to edit  \n10  \nA Simple C Program  \nA function, called printf, that sends formatted  \n\\#include \u003Cstdio .h> owuhtipuchtttohestdproougtra(tympwi caasl ly trunh) e terminal from  \nint main( ){ header file.  \nThis is one of the functions defined in the stdio.h  \nMore on printf soon…  \nint a = 3;  \nprintf (“The value of this integer is %d\\n”, a);  \nreturn 0 ;  \n}  \nOpen slide master to edit","cbCaiqkift0xDjdv","https://ap.wps.com/l/cbCaiqkift0xDjdv","pdf",4350650,56,"English","# A Simple C Program\n## C Programming Language\n## Associated Materials for this Talk","[{\"question\":\"What makes C a compiled language in this talk?\",\"answer\":\"The slides explain that a compiler converts high-level code such as C into machine code.\"},{\"question\":\"What is the role of #include in the simple C program?\",\"answer\":\"It is described as a preprocessor directive that tells the compiler to include the contents of the header file, such as those from stdio.h.\"},{\"question\":\"How does the program start running in C?\",\"answer\":\"Execution begins in the main function, declared as int main() in the example.\"}]","Intro to C Programming - Course Talk Slides | PDF",1790066765,141,[147,151,154,158,161,165],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/44e979c99e85988f26097a4615eb6787.webp",983,552,{"page_no":14,"url":152,"width":153,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/0f8233f35e39f06c35365ab9df06c856.webp",982,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/487764225649528c5617d4208d79082e.webp",981,551,{"page_no":19,"url":159,"width":160,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7185cbc7bec5be56f0b9264dfff714a7.webp",980,{"page_no":24,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b3143f906f46420fd46f2d4b02252c1d.webp",979,550,{"page_no":29,"url":166,"width":167,"height":168},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/b7e10ab41b43a055fc79c307a7627ab4.webp",978,549]