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 structure packing in c?
Tell us the use of fflush() function in c language?
string reverse using recursion
1) int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); return 0; } can anyone please explain the explain the output
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
write a program that will accept two integers and will implement division without using the division operator if the second value is an odd number and will implement multiplication without using multiplication operator if the second value is an even number.
Identify the operators that is not used with pointer a. && b. # c. * d. >>
Explain 'bus error'?
Explain what is page thrashing?
How can I find the day of the week given the date?
pgm to find middle element of linklist(in efficent manner)
What is C language Terminator?