{"id":330,"date":"2021-07-12T20:38:18","date_gmt":"2021-07-12T20:38:18","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=330"},"modified":"2021-09-14T05:59:53","modified_gmt":"2021-09-14T05:59:53","slug":"write-a-program-without-using-library-functions","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/","title":{"rendered":"Write a program without using library functions ?"},"content":{"rendered":"<h2 id=\"write-a-program-without-using-library-functions\" class=\"color-pink\" style=\"text-align: justify;\">Write a program without using library functions ?<\/h2>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>C Standard library functions or simply\u00a0<a href=\"https:\/\/www.wikitechy.com\/tutorials\/c-programming\/c-library-and-user-define-functions\" target=\"_blank\" rel=\"noopener\">C Library functions<\/a>\u00a0are inbuilt functions in C programming.<\/li>\n<li>The prototype and data definitions of the functions are present in their respective header files, and must be included in your program to access them.<\/li>\n<li>If you want to use printf() function, the header file <stdio.h> should be included. For example,<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"text-center row\" style=\"text-align: justify;\"><\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"copy-string-manually-without-using-strcpy\" class=\"color-green\">Copy String Manually Without Using strcpy()<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>In this C Program we have to copy the string without using library functions.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"sample-code\" class=\"color-purple\">Sample Code<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-c code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-c code-embed-code\">#include <stdio.h><br\/>int main()<br\/>{<br\/>    char str1[100], str2[100], j;<br\/><br\/>    printf(&quot;Enter the string str1: &quot;);<br\/>    scanf(&quot;%s&quot;,str1);<br\/><br\/>    for(j = 0; str1[j] != &#039;\\0&#039;; ++j)<br\/>    {<br\/>        str2[j] = str1[j];<br\/>    }<br\/><br\/>    str2[j] = &#039;\\0&#039;;<br\/>    printf(&quot;String str2: %s&quot;, str2);<br\/><br\/>    return 0;<br\/>}<\/code><\/pre> <\/div>\n<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"output\" class=\"color-purple\">Output<\/h2>\n<\/div>\n<\/div>\n<div class=\"Output\">\n<div class=\"hddn\">\n<figure class=\"highlight\"><div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-c code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-c code-embed-code\">Enter the String str1: Wikitechy<br\/> String str2: Wikitechy<\/code><\/pre> <\/div><\/figure>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer : C Standard library functions are inbuilt functions in C programming&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1716],"tags":[1739,491,1740,211,1918,1932,1919,1920,1921,1922,1923,1924,1925,1926,1927,1933,203,199,214,198,363,209,1928,1929,205,1745,1743,222,1747,196,212,710,207,366,204,217,15927,288,1744,483,206,1930,1741,1742,1746,1931],"class_list":["post-330","post","type-post","status-publish","format-standard","hentry","category-c","tag-accentur-interview-questions-and-answers","tag-applied-materials-interview-questions-and-answers","tag-asian-paints-ltd-interview-questions-and-answers","tag-bosch-india-software-interview-questions-and-answers","tag-c-program-for-string-concatenation-without-using-strcat","tag-c-program-to-concat-two-strings-without-using-library-function","tag-c-program-to-copy-one-string-into-another","tag-c-program-to-copy-one-string-into-other-string-without-using","tag-c-program-to-copy-one-string-into-other-without-using-library-function","tag-c-program-to-copy-one-string-to-another-string","tag-c-program-to-copy-one-string-to-another-using-functions","tag-c-program-to-copy-one-string-to-another-using-strcpy","tag-c-program-to-copy-string-without-using-strcpy","tag-c-program-to-copy-string-without-using-strcpy-function","tag-c-program-to-perform-string-operations-without-using-built-in-functions","tag-c-string-manipulation-programs-examples-without-using-library","tag-capgemini-interview-questions-and-answers","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-cgi-group-inc-interview-questions-and-answers","tag-chetu-interview-questions-and-answers","tag-ciena-corporation-interview-questions-and-answers","tag-collabera-technologies-interview-questions-and-answers","tag-copy-one-string-into-another-string","tag-copy-one-string-to-another-in-c-without-using-strcpy","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-dhfl-pramerica-life-insurance-company-ltd-interview-questions-and-answers","tag-elico-healthcare-services-ltd-interview-questions-and-answers","tag-flipkart-interview-questions-and-answers","tag-hcl-technol-interview-questions-and-answers","tag-ibm-interview-questions-and-answers","tag-indecomm-global-services-interview-questions-and-answers","tag-mavenir-interview-questions-and-answers","tag-mphasis-interview-questions-and-answers","tag-netapp-interview-questions-and-answers","tag-oracle-corporation-interview-questions-and-answers","tag-peoplestrong-interview-questions-and-answers","tag-plintron-interview-questions-and-answers","tag-r-systems-interview-questions-and-answers","tag-raqmiyat-information-technologies-pvt-ltd-interview-questions-and-answers","tag-reliance-industries-ltd-interview-questions-and-answers","tag-sap-labs-india-pvt-ltd-interview-questions-and-answers","tag-string-copy-in-c-using-pointersstring-copy-in-c-without-using-strcpy-using-pointers","tag-tata-aia-life-insurance-interview-questions-and-answers","tag-tech-mahindr-interview-questions-and-answers","tag-the-linde-group-interview-questions-and-answers","tag-write-a-c-program-to-read-two-strings-and-concatenate-them"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Write a program without using library functions ? - C Interview Questions<\/title>\n<meta name=\"description\" content=\"Write a program without using library functions - C Standard library functions or simply C Library functions are inbuilt functions in C programming\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Write a program without using library functions ? - C Interview Questions\" \/>\n<meta property=\"og:description\" content=\"Write a program without using library functions - C Standard library functions or simply C Library functions are inbuilt functions in C programming\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-12T20:38:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-14T05:59:53+00:00\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/write-a-program-without-using-library-functions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/write-a-program-without-using-library-functions\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"Write a program without using library functions ?\",\"datePublished\":\"2021-07-12T20:38:18+00:00\",\"dateModified\":\"2021-09-14T05:59:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/write-a-program-without-using-library-functions\\\/\"},\"wordCount\":207,\"commentCount\":0,\"keywords\":[\"Accentur interview questions and answers\",\"Applied Materials interview questions and answers\",\"Asian Paints Ltd. interview questions and answers\",\"Bosch India Software interview questions and answers\",\"c program for string concatenation without using strcat\",\"C Program to Concat Two Strings without Using Library Function\",\"C program to copy one string into another\",\"C program to copy one string into other string without using\",\"C Program to Copy One String into Other Without Using Library Function\",\"C program to copy one string to another string\",\"c program to copy one string to another using functions\",\"c program to copy one string to another using strcpy\",\"C program to Copy String without using strcpy()\",\"C program to copy string without using strcpy() function\",\"c program to perform string operations without using built in functions\",\"C string manipulation programs\\\/examples without using Library\",\"Capgemini interview questions and answers\",\"CASTING NETWORKS INDIA PVT LIMITED interview questions and answers\",\"CGI Group Inc interview questions and answers\",\"Chetu interview questions and answers\",\"Ciena Corporation interview questions and answers\",\"Collabera Technologies interview questions and answers\",\"Copy one string into another string\",\"copy one string to another in c++ without using strcpy\",\"Dell International Services India Pvt Ltd interview questions and answers\",\"DHFL Pramerica Life Insurance Company Ltd interview questions and answers\",\"Elico HealthCare Services Ltd interview questions and answers\",\"Flipkart interview questions and answers\",\"HCL Technol interview questions and answers\",\"IBM interview questions and answers\",\"Indecomm Global Services interview questions and answers\",\"Mavenir interview questions and answers\",\"Mphasis interview questions and answers\",\"NetApp interview questions and answers\",\"Oracle Corporation interview questions and answers\",\"PeopleStrong interview questions and answers\",\"plintron interview questions and answers\",\"R Systems interview questions and answers\",\"Raqmiyat Information Technologies Pvt Ltd interview questions and answers\",\"Reliance Industries Ltd interview questions and answers\",\"SAP Labs India Pvt Ltd interview questions and answers\",\"string copy in c using pointersstring copy in c without using strcpy using pointers\",\"Tata AIA Life Insurance interview questions and answers\",\"Tech Mahindr interview questions and answers\",\"The Linde Group interview questions and answers\",\"write a c program to read two strings and concatenate them\"],\"articleSection\":[\"C\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/write-a-program-without-using-library-functions\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/write-a-program-without-using-library-functions\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/write-a-program-without-using-library-functions\\\/\",\"name\":\"Write a program without using library functions ? - C Interview Questions\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"datePublished\":\"2021-07-12T20:38:18+00:00\",\"dateModified\":\"2021-09-14T05:59:53+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Write a program without using library functions - C Standard library functions or simply C Library functions are inbuilt functions in C programming\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/write-a-program-without-using-library-functions\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/editor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Write a program without using library functions ? - C Interview Questions","description":"Write a program without using library functions - C Standard library functions or simply C Library functions are inbuilt functions in C programming","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/","og_locale":"en_US","og_type":"article","og_title":"Write a program without using library functions ? - C Interview Questions","og_description":"Write a program without using library functions - C Standard library functions or simply C Library functions are inbuilt functions in C programming","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/","og_site_name":"Wikitechy","article_published_time":"2021-07-12T20:38:18+00:00","article_modified_time":"2021-09-14T05:59:53+00:00","author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"Write a program without using library functions ?","datePublished":"2021-07-12T20:38:18+00:00","dateModified":"2021-09-14T05:59:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/"},"wordCount":207,"commentCount":0,"keywords":["Accentur interview questions and answers","Applied Materials interview questions and answers","Asian Paints Ltd. interview questions and answers","Bosch India Software interview questions and answers","c program for string concatenation without using strcat","C Program to Concat Two Strings without Using Library Function","C program to copy one string into another","C program to copy one string into other string without using","C Program to Copy One String into Other Without Using Library Function","C program to copy one string to another string","c program to copy one string to another using functions","c program to copy one string to another using strcpy","C program to Copy String without using strcpy()","C program to copy string without using strcpy() function","c program to perform string operations without using built in functions","C string manipulation programs\/examples without using Library","Capgemini interview questions and answers","CASTING NETWORKS INDIA PVT LIMITED interview questions and answers","CGI Group Inc interview questions and answers","Chetu interview questions and answers","Ciena Corporation interview questions and answers","Collabera Technologies interview questions and answers","Copy one string into another string","copy one string to another in c++ without using strcpy","Dell International Services India Pvt Ltd interview questions and answers","DHFL Pramerica Life Insurance Company Ltd interview questions and answers","Elico HealthCare Services Ltd interview questions and answers","Flipkart interview questions and answers","HCL Technol interview questions and answers","IBM interview questions and answers","Indecomm Global Services interview questions and answers","Mavenir interview questions and answers","Mphasis interview questions and answers","NetApp interview questions and answers","Oracle Corporation interview questions and answers","PeopleStrong interview questions and answers","plintron interview questions and answers","R Systems interview questions and answers","Raqmiyat Information Technologies Pvt Ltd interview questions and answers","Reliance Industries Ltd interview questions and answers","SAP Labs India Pvt Ltd interview questions and answers","string copy in c using pointersstring copy in c without using strcpy using pointers","Tata AIA Life Insurance interview questions and answers","Tech Mahindr interview questions and answers","The Linde Group interview questions and answers","write a c program to read two strings and concatenate them"],"articleSection":["C"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/","name":"Write a program without using library functions ? - C Interview Questions","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-07-12T20:38:18+00:00","dateModified":"2021-09-14T05:59:53+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Write a program without using library functions - C Standard library functions or simply C Library functions are inbuilt functions in C programming","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/c\/write-a-program-without-using-library-functions\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=330"}],"version-history":[{"count":2,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/330\/revisions"}],"predecessor-version":[{"id":3648,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/330\/revisions\/3648"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}