To Write a C program to remove the repeated characters in
the entered expression or in entered characters(i.e)
removing duplicates.
Answer Posted / avinash
#include<stdio.h>
int main()
{int i,j,k;
char a[]="avinash";
for(i=0;i=5;i++)
{
for(j=(i+1);j=6;j++)
{
if(a[j]==a[i])
{ for(k=j;k<=6;k++)
a[k]=a[k+1];
}
}
for(i=0;i<7;i++)
printf("%c",a[i]);
}
return(0);
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
write a program for area of circumference of shapes
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
Design an implement of the inputs functions for event mode
write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']
write a simple calculator c program to perform addition, subtraction, mul and div.
why nlogn is the lower limit of any sort algorithm?
How to palindrom string in c language?
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.
how to test pierrot divisor
could you please send the program code for multiplying sparse matrix in c????
How can you relate the function with the structure? Explain with an appropriate example.
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30