C program for removing specified charecter , C/C++ Programming

 

#include stdio.h>

#include conio.h>

#include string.h>

 

void del(char[],char *);

main()

{

          char str[30],ch,*pp;

          clrscr();

          puts("ENTER THE STRING: ");

          gets(str);

          printf("ENTER ANY CHARACER WHICH U WNAT TO DELETE: ");

          ch=getchar();

          pp=&ch;

          del(str,pp);

          getch();

}

 

void del(char c[],char *pp)

{

          int l,i;

          l=strlen(c);

          for(i=0;i

          {

                   if(c[i]==*pp)

                             c[i]=' ';

                   else

                             printf("%c",c[i]);

          }

}

 

Posted Date: 9/10/2012 8:24:38 AM | Location : United States







Related Discussions:- C program for removing specified charecter , Assignment Help, Ask Question on C program for removing specified charecter , Get Answer, Expert's Help, C program for removing specified charecter Discussions

Write discussion on C program for removing specified charecter
Your posts are moderated
Related Questions
I''m having trouble with my C code to red from a Hash table. Not sure what it is I''m doing wrong and stumped. I need to get it figured out by tomorrow at 4:00 p.m. Eastern time. C

write a C rpogram that can display the transpose form of a ciphertext matrix.Prompt users to provide row and coloumn number of matrix.Then user will input plaintext and the program

Develop Custom Mql4 Code/Fxdreema block Project Description: I need the subsequent code written in mql4 and integrated as custom block(s) in fxdreema: for each trade: C

Write a C program "team.c" that maintains information for a soccer team. The program will allow you to add and delete players from your team, to search your team for players by nam

Write a program that writes your name on the monitor ten times. Write this program three times, once with each looping method.

C Program to check FACTORIAL   main() {             int i,j,m,fact,sum=0;           clrscr();           printf("ENTER THE NO.: ");           scanf("%d",&m);

Define Bit Fields Bit Fields permits the packing of data in a structure. This is particularly useful when memory or data storage is at a premium. Usual examples: Packing



explain Storage management: free storage pool, garbage collection, compaction, boundary tag method; Hash tables and hashing functions