write a program to remove duplicate from an ordered char array? in c
Answer Posted / 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 |
Post New Answer View All Answers
How can you invoke another program from within a C program?
Why double pointer is used in c?
What is the Purpose of 'extern' keyword in a function declaration?
How we can insert comments in a c program?
How can you be sure that a program follows the ANSI C standard?
Explain what are the standard predefined macros?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
When c language was developed?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What is #define size in c?
How can you determine the size of an allocated portion of memory?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What is mean by data types in c?
Explain how can I convert a number to a string?
Explain Function Pointer?