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 |
Without Computer networks, Computers will be half the use. Comment.
how to use virual function in real time example
Tell me what is null pointer in c?
what is foreign key in c language?
shorting algorithmS
Find the O/p of the following struct node { char *name; int num; }; int main() { struct node s1={"Harry",1331}; struct node s2=s1; if(s1==s2) printf("Same"); else printf("Diff"); }
State the difference between x3 and x[3].
what is Structural oriented language? give some example of this language.....?
How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance
what is difference between array,strutter,union and pointers
3 Answers CTS, Lovely Professional University, Mannar Company,
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
what is the return type of printf