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

Assignment Help:

 

#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]);

          }

}

 


Related Discussions:- C program for removing specified charecter

Named what can derived class add?, New data members  New member function...

New data members  New member functions  New constructors and destructor  New friends

Algorithms, create algorithm for doubly link list using c data structure

create algorithm for doubly link list using c data structure

Decode the code, Smugglers are becoming very smart day by day. Now they hav...

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Bubble sort, sample of program that use in bubble sort using assignment ope...

sample of program that use in bubble sort using assignment operator in c++

Is it possible to create your own header files, Is it possible to create yo...

Is it possible to create your own header files? - Yes, it's possible to create a customized header file. - To do this, you just need to include function prototypes that you

C program for exchange first & last character, Normal 0 false ...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Arrays, how to write a program using arrays

how to write a program using arrays

Stack, c++ program to to implement multiple stacks using single array

c++ program to to implement multiple stacks using single array

Lexicographically preceding permutation, Given an integer n and a permutati...

Given an integer n and a permutation of numbers 1, 2 ... , n-1, n write a program to print the permutation that lexicographically precedes the given input permutation. If the given

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd