<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>delete characters | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/delete-characters/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Mon, 29 Aug 2011 09:39:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Program to delete n Characters from a given position in a given string using functions</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/string/program-delete-characters-position-string-functions/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/string/program-delete-characters-position-string-functions/#comments</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Mon, 29 Aug 2011 09:39:37 +0000</pubDate>
				<category><![CDATA[String Programs]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[string programs]]></category>
		<category><![CDATA[delete characters]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1750</guid>

					<description><![CDATA[<p>This C program uses function delchar to delete n characters from a given position in a given string. #include "stdio.h" #include "conio.h" #include "string.h" void delchar(char *x,int a, int b); void main() { char string[10]; int n,pos,p; clrscr(); puts("Enter the string"); gets(string); printf("Enter the position from where to delete"); scanf("%d",&#38;pos); printf("Enter the number of characters</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/string/program-delete-characters-position-string-functions/">Program to delete n Characters from a given position in a given string using functions</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>This C program uses function delchar to delete n characters from a given position in a given string.</p>
<pre lang="c" escaped="true" line="1">
#include "stdio.h"
#include "conio.h"
#include "string.h"

void delchar(char *x,int a, int b);

void main()
{
     char string[10];
     int n,pos,p;
     clrscr();

     puts("Enter the string");
     gets(string);
     printf("Enter the position from where to delete");
     scanf("%d",&amp;pos);
     printf("Enter the number of characters to be deleted");
     scanf("%d",&amp;n);
     delchar(string, n,pos);
     getch();
}

// Function to delete n characters
void delchar(char *x,int a, int b)
{
  if ((a+b-1) &lt;= strlen(x))
  {
    strcpy(&amp;x[b-1],&amp;x[a+b-1]);
    puts(x);
    }
}</pre><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/string/program-delete-characters-position-string-functions/">Program to delete n Characters from a given position in a given string using functions</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/string/program-delete-characters-position-string-functions/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
