{"id":72,"date":"2016-07-19T15:16:06","date_gmt":"2016-07-19T15:16:06","guid":{"rendered":"http:\/\/www.inspirenignite.com\/jntuk\/?p=72"},"modified":"2016-08-07T11:59:28","modified_gmt":"2016-08-07T11:59:28","slug":"jntuk-b-tech-c-programming-lab-for-r13-batch","status":"publish","type":"post","link":"https:\/\/www.inspirenignite.com\/jntuk\/jntuk-b-tech-c-programming-lab-for-r13-batch\/","title":{"rendered":"JNTUK B.Tech C Programming Lab for R13 Batch"},"content":{"rendered":"<p>JNTUk B.Tech C Programming Lab R13 Syllabus for Engineering it gives you detail information about C Programming Lab syllabus.<\/p><div class=\"a9916ad81d5189659b0bfae0b37c143c\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1181153414625576\"\r\n     data-ad-slot=\"9648548092\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n\n<p><strong>Exercise I<\/strong><\/p>\n<ul>\n<li>a) Write a C Program to calculate the area of triangle using the formula area = ( s (s-a) (s-b)(s-c))1\/2 where s= (a+b+c)\/2<\/li>\n<li>b) Write a C program to find the largest of three numbers using ternary operator.<\/li>\n<li>c) Write a C Program to swap two numbers without using a temporary variable.<\/li>\n<\/ul>\n<p><strong>Exercise 2<\/strong><\/p>\n<ul>\n<li>a) 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.<\/li>\n<li>b) Write a C program to find the roots of a quadratic equation.<\/li>\n<li>c) Write a C program, which takes two integer operands and one operator form the user, performs the operation and then prints the result. (Consider the operators +,-,*, \/, % and use Switch Statement).<\/li>\n<\/ul>\n<p><strong>Exercise 3<\/strong><\/p>\n<ul>\n<li>a) Write a C program to find the sum of individual digits of a positive integer and find the reverse of the given number.<\/li>\n<li>b) A Fibonacci sequence is defined as follows: the first and second terms in the sequence are 0 and 1. Subsequent terms are found by adding the preceding two terms in the sequence. Write a C program to generate the first n terms of the sequence.<\/li>\n<li>c) Write a C program to generate all the prime numbers between 1 and n, where n is a value supplied by the user.<\/li>\n<\/ul>\n<p><strong>Exercise 4<\/strong><\/p>\n<ul>\n<li>a) Write a C Program to print the multiplication table of a given number n up to a given value, where n is entered by the user.<\/li>\n<li>b) Write a C Program to enter a decimal number, and calculate and display the binary equivalent of that number.<\/li>\n<li>c) Write a C Program to check whether the given number is Armstrong number or not.<\/li>\n<\/ul>\n<p><strong>Exercise 5<\/strong><\/p>\n<ul>\n<li>a) Write a C program to interchange the largest and smallest numbers in the array.<\/li>\n<li>b) Write a C program to implement a liner search.<\/li>\n<li>c) Write a C program to implement binary search.<\/li>\n<\/ul>\n<p><strong>Exercise 6<\/strong><\/p>\n<ul>\n<li>a) Write a C program to implement sorting of an array of elements .<\/li>\n<li>b) Write a C program to input two m x n matrices, check the compatibility and perform addition and multiplication of them.<\/li>\n<\/ul>\n<p><strong>Exercise 7<\/strong><\/p>\n<p>Write a C program that uses functions to perform the following operations:<br \/>\ni. To insert a sub-string in to given main string from a given position.<br \/>\nii. To delete n Characters from a given position in a given string.<br \/>\niii. To replace a character of string either from beginning or ending or at a specified location.<\/p>\n<p><strong>Exercise 8<\/strong><\/p>\n<p>Write a C program that uses functions to perform the following operations using Structure:<br \/>\ni) Reading a complex number<br \/>\nii) Writing a complex number<br \/>\niii) Addition of two complex numbers<br \/>\niv) Multiplication of two complex numbers<\/p>\n<p><strong>Exercise 9<\/strong><\/p>\n<p>Write C Programs for the following string operations without using the built in functions.<br \/>\n&#8211; to concatenate two strings<br \/>\n&#8211; to append a string to another string<br \/>\n&#8211; to compare two strings<\/p>\n<p><strong>Exercise 10<\/strong><\/p>\n<p>Write C Programs for the following string operations without using the built in functions.<br \/>\n&#8211; to find t he length of a string<br \/>\n&#8211; to find whether a given string is palindrome or not<\/p>\n<p><strong>Exercise 11<\/strong><\/p>\n<p>a) Write a C functions to find both the largest and smallest number of an array of integers.<br \/>\nb) Write C programs illustrating call by value and call by reference cncepts.<\/p>\n<p><strong>Exercise 12<\/strong><\/p>\n<p>Write C programs that use both recursive and non-recursive functions for the following<br \/>\ni) To find the factorial of a given integer.<br \/>\nii) To find the GCD (greatest common divisor) of two given integers.<br \/>\niii) To find Fibonacci sequence<\/p>\n<p><strong>Exercise 13<\/strong><\/p>\n<p>a) Write C Program to reverse a string using pointers<br \/>\nb) Write a C Program to compare two arrays using pointers<\/p>\n<p><strong>Exercise 14<\/strong><\/p>\n<p>a) Write a C program consisting of Pointer based function to exchange value of two integers using passing by address.<br \/>\nb) Write a C program to swap two numbers using pointers.<\/p>\n<p><strong>Exercise 15<\/strong><\/p>\n<p>Examples which explores the use of structures, union and other user defined variables.<\/p>\n<p><strong>Exercise 16<\/strong><\/p>\n<ul>\n<li>a) Write a C program which copies one file to another.<\/li>\n<li>b) Write a C program to count the number of characters and number of lines in a file.<\/li>\n<li>c) Write a C Program to merge two files into a third file. The names of the files must be entered using command line arguments.<\/li>\n<\/ul>\n<p>For more information about all JNTU updates please stay connected to us on FB and don\u2019t hesitate to ask any questions in the comment.<\/p>\n<div class=\"a9916ad81d5189659b0bfae0b37c143c\" data-index=\"2\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1181153414625576\"\r\n     data-ad-slot=\"8060844699\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>JNTUk B.Tech C Programming Lab R13 Syllabus for Engineering it gives you detail information about C Programming Lab syllabus. Exercise I a) Write a C Program to calculate the area [&hellip;]<\/p>\n","protected":false},"author":2259,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-syllabus"],"_links":{"self":[{"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/users\/2259"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":6,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":364,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/posts\/72\/revisions\/364"}],"wp:attachment":[{"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuk\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}