write a program to remove duplicate from an ordered char array? in c
Answers were Sorted based on User's Feedback
Answer / shailesh
i m giving simlpe logic here.first sort the characters and
in a array. then check if a[i]==a[i+1],if yes, then move 1
place ahead i the arrray.
| Is This Answer Correct ? | 5 Yes | 8 No |
Answer / avizo
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,sum;
printf("enter the first value a:");
scanf("%d",&a);
printf("enter the second value b:");
scanf("%d",&b);
sum=a+b;
printf("sum=%d",sum);
getch();
}
| Is This Answer Correct ? | 0 Yes | 14 No |
What is an array? What the different types of arrays in c?
value = 0xabcd; for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) { foo(); if (loop & 1) value >>= 1; } how many times is foo() executed?
What is a struct c#?
What are the various topologies? Which one is the most secure?
What is pass by value in c?
show how link list can be used to repersent the following polynomial i) 5x+2
Define circular linked list.
What is time complexity c?
How to use c/c++ code in JAVA
10 Answers CDAC, IBM, Satyam, Scope International,
How can I use a preprocessorif expression to ?
What is the difference between #include <header file> and #include “header file”?
what is the difference between. system call and library function?