{"id":8465,"date":"2022-12-02T05:26:31","date_gmt":"2022-12-02T05:26:31","guid":{"rendered":"https:\/\/bvcoend.ac.in\/?page_id=8465"},"modified":"2026-03-24T06:12:49","modified_gmt":"2026-03-24T06:12:49","slug":"programming-in-c-lab-2","status":"publish","type":"page","link":"https:\/\/bvcoend.ac.in\/index.php\/programming-in-c-lab-2\/","title":{"rendered":"PROGRAMMING IN \u2018C\u2019 LAB"},"content":{"rendered":"[vc_row][vc_column width=&#8221;1\/4&#8243;][vc_wp_custommenu title=&#8221;Imp Links&#8221; nav_menu=&#8221;70&#8243;][\/vc_column][vc_column width=&#8221;3\/4&#8243;][vc_column_text]<span style=\"color: #000000;\"><strong><img loading=\"lazy\" class=\"alignnone size-medium wp-image-15838\" src=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142823.jpg-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142823.jpg-300x225.jpeg 300w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142823.jpg-1024x768.jpeg 1024w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142823.jpg-768x576.jpeg 768w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142823.jpg-1536x1152.jpeg 1536w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142823.jpg-2048x1536.jpeg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> \u00a0<img loading=\"lazy\" class=\"alignnone size-medium wp-image-15839\" src=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142840.jpg-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142840.jpg-300x225.jpeg 300w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142840.jpg-1024x768.jpeg 1024w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142840.jpg-768x576.jpeg 768w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142840.jpg-1536x1152.jpeg 1536w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142840.jpg-2048x1536.jpeg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> \u00a0<img loading=\"lazy\" class=\"alignnone size-medium wp-image-15840\" src=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142838.jpg-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142838.jpg-300x225.jpeg 300w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142838.jpg-1024x768.jpeg 1024w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142838.jpg-768x576.jpeg 768w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142838.jpg-1536x1152.jpeg 1536w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142838.jpg-2048x1536.jpeg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> \u00a0<img loading=\"lazy\" class=\"alignnone size-medium wp-image-15841\" src=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142755.jpg-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142755.jpg-300x225.jpeg 300w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142755.jpg-1024x768.jpeg 1024w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142755.jpg-768x576.jpeg 768w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142755.jpg-1536x1152.jpeg 1536w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142755.jpg-2048x1536.jpeg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> \u00a0<img loading=\"lazy\" class=\"alignnone size-medium wp-image-15843\" src=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142757.jpg-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142757.jpg-300x225.jpeg 300w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142757.jpg-1024x768.jpeg 1024w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142757.jpg-768x576.jpeg 768w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142757.jpg-1536x1152.jpeg 1536w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142757.jpg-2048x1536.jpeg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> \u00a0<img loading=\"lazy\" class=\"alignnone size-medium wp-image-15844\" src=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142817.jpg-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142817.jpg-300x225.jpeg 300w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142817.jpg-1024x768.jpeg 1024w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142817.jpg-768x576.jpeg 768w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142817.jpg-1536x1152.jpeg 1536w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142817.jpg-2048x1536.jpeg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> \u00a0<img loading=\"lazy\" class=\"alignnone size-medium wp-image-15845\" src=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142741.jpg-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142741.jpg-300x225.jpeg 300w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142741.jpg-1024x768.jpeg 1024w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142741.jpg-768x576.jpeg 768w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142741.jpg-1536x1152.jpeg 1536w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142741.jpg-2048x1536.jpeg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> \u00a0<img loading=\"lazy\" class=\"alignnone size-medium wp-image-15846\" src=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142851.jpg-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142851.jpg-300x225.jpeg 300w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142851.jpg-1024x768.jpeg 1024w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142851.jpg-768x576.jpeg 768w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142851.jpg-1536x1152.jpeg 1536w, https:\/\/bvcoend.ac.in\/wp-content\/uploads\/2026\/03\/IMG20260317142851.jpg-2048x1536.jpeg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Room A-401<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>LAB INCHARGE: Mr. Mohit Dayal<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>LAB ASSISTANT: Mr. Vijay\u00a0<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\"><strong>Program Objectives: <\/strong>C is a powerful general-purpose programming language. The importance of computer programming in the modern day to day life and automotive industry is paramount and growing. So, the aim of this program is to make students can gain broad perspective about the uses of computer programming in engineering industry and to improve their analytical and logical thinking. Moreover, the use of C programming language is to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Python interpreter, and games etc.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\"><strong>Procedure of Program:<\/strong> To impart the basic knowledge about C programming such as, concepts of arrays, pointers, files, union, structures, conditional branching, iteration and recursion. Students will be able to develop logics which will help them to create programs, applications in C programming language. Through writing program on distinct topics, their logical and analytical approach will enhance. Additionally, by learning the fundamentals of C programming, students will be able to learn other programming languages with ease.<\/span><\/p>\n<table style=\"width: 652px;\" border=\"1\" width=\"652\">\n<tbody>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\"><strong>S. No.<\/strong><\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\"><strong>Title of Lab Experiments<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">1.<\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a program to find divisor or factorial of a given number.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">2.<\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a program to find sum of a geometric series<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">3.<\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a recursive program for tower of Hanoi problem<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">4.<\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a recursive program to print the first m Fibonacci number<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">5.<\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a menu driven program for matrices to do the following operation depending on whether the operation requires one or two matrices<\/span><\/p>\n<p><span style=\"color: #000000;\">a.\u00a0\u00a0\u00a0\u00a0\u00a0 Addition of two matrices<\/span><\/p>\n<p><span style=\"color: #000000;\">b.\u00a0\u00a0\u00a0\u00a0 Subtraction of two matrices<\/span><\/p>\n<p><span style=\"color: #000000;\">c.\u00a0\u00a0\u00a0\u00a0\u00a0 Finding upper and lower triangular matrices<\/span><\/p>\n<p><span style=\"color: #000000;\">d.\u00a0\u00a0\u00a0\u00a0 Transpose of a matrix<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>e.\u00a0\u00a0\u00a0\u00a0\u00a0 <\/strong>Product of two matrices.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">6.<\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\">\u00a0Write a program to copy one file to other, use command line arguments.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">7.<\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\">An array of record contains information of managers and workers of a company. Print all the data of managers and workers in separate files.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">8.<\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a program to perform the following operators on Strings without using String functions<\/span><\/p>\n<p><span style=\"color: #000000;\">a.\u00a0\u00a0\u00a0\u00a0\u00a0 To find the Length of String.<\/span><\/p>\n<p><span style=\"color: #000000;\">b.\u00a0\u00a0\u00a0\u00a0 To concatenate two strings.<\/span><\/p>\n<p><span style=\"color: #000000;\">c.\u00a0\u00a0\u00a0\u00a0\u00a0 To find Reverse of a string.<\/span><\/p>\n<p><span style=\"color: #000000;\">d.\u00a0\u00a0\u00a0\u00a0 To copy one string to another string.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">9.<\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a Program to store records of a student in student file. The data must be stored using Binary File. Read the record stored in \u201cStudent.txt\u201d file in Binary code.Edit the record stored in Binary File.Append a record in the Student file.<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"66\"><span style=\"color: #000000;\">10.<\/span><\/td>\n<td width=\"501\"><span style=\"color: #000000;\">Write a programmed to count the no of Lowercase, Uppercase numbers and special Characters presents in the contents of text File.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\"><strong>CONTENT BEYOND SYLLABUS<\/strong><\/span><\/p>\n<table style=\"height: 216px; width: 654px;\" border=\"1\" width=\"654\">\n<tbody>\n<tr style=\"height: 18px;\">\n<td style=\"height: 18px; width: 65.0625px;\"><span style=\"color: #000000;\"><strong>S.No<\/strong><\/span><\/td>\n<td style=\"height: 18px; width: 572.938px;\"><span style=\"color: #000000;\"><strong>Name of Experiment<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 54px;\">\n<td style=\"height: 54px; width: 65.0625px;\"><span style=\"color: #000000;\">1.<\/span><\/td>\n<td style=\"height: 54px; width: 572.938px;\"><span style=\"color: #000000;\">Write a C program to compute the monthly pay of 100 employees using each employee\u2019s name, basic pay. The DA is computed as 52% of the basic pay. Gross-salary (basic pay + DA). Print the employees name and gross salary<\/span><\/td>\n<\/tr>\n<tr style=\"height: 72px;\">\n<td style=\"height: 72px; width: 65.0625px;\"><span style=\"color: #000000;\">2<\/span><\/td>\n<td style=\"height: 72px; width: 572.938px;\"><span style=\"color: #000000;\">2\u2019s complement of a number is obtained by scanning it from right to left and complementing all the bits after the first appearance of a 1. Thus 2\u2019s complement of 11100 is 00100. Write a C program to find the 2\u2019s complement of a binary number.<\/span><\/td>\n<\/tr>\n<tr style=\"height: 72px;\">\n<td style=\"height: 72px; width: 65.0625px;\"><span style=\"color: #000000;\">3<\/span><\/td>\n<td style=\"height: 72px; width: 572.938px;\"><span style=\"color: #000000;\">Write a C program that uses functions and structures to perform the following operations:<\/span><br \/>\n<span style=\"color: #000000;\">i) Reading a complex numberii) Writing a complex numberiii) Addition of two complex numbersiv) Multiplication of two complex numbers<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\"><strong>Suggested Books<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\"><strong>Text Books<\/strong><strong>: <\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">[T1] Programming in ANSI C by E. Balguruswamy, Tata Mc-Graw.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">[T2] Programming With C, Schaum Series.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\"><strong>Reference Books: <\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">[R1] Let Us C, Yashavant Kanetkar, Fifth Edition, 2021.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">[R2] The \u2018C\u2019 programming language by Kernighan and Ritchie, Prentice Hall<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">[R3] Programming Logic &amp; Design by Tony Gaddis, Pearson, 2nd Ed. 2016.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">[R4] How to solve it by Computer by R.G. Dromey, Pearson Education<\/span><\/p>\n[\/vc_column_text][\/vc_column][\/vc_row]\n","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column width=&#8221;1\/4&#8243;][vc_wp_custommenu title=&#8221;Imp Links&#8221; nav_menu=&#8221;70&#8243;][\/vc_column][vc_column width=&#8221;3\/4&#8243;][vc_column_text] \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Room A-401 LAB INCHARGE: Mr. Mohit Dayal LAB ASSISTANT: Mr. Vijay\u00a0 Program Objectives: C is a powerful general-purpose programming language. The importance of computer programming in the modern day to day life and automotive industry is paramount and growing. So, the aim&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/pages\/8465"}],"collection":[{"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/comments?post=8465"}],"version-history":[{"count":8,"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/pages\/8465\/revisions"}],"predecessor-version":[{"id":15848,"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/pages\/8465\/revisions\/15848"}],"wp:attachment":[{"href":"https:\/\/bvcoend.ac.in\/index.php\/wp-json\/wp\/v2\/media?parent=8465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}