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 do u mean by Direct access files? then can u explain about Direct Access Files?
Write a program in c to print 1 121 12321 1234321 123454321
11 Answers ANR, College School Exams Tests, Mu Sigma, Wipro,
struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]
Explain #pragma statements.
Is c procedural or functional?
What is a structure in c language. how to initialise a structure in c?
What is signed and unsigned?
What is meant by keywords in c?
If we give two names then this displays the connection between the two people. It is nothing but flames game
write a program that finds the factorial of a number using recursion?
Which built-in library function can be used to match a patter from the string?
List some of the static data structures in C?