How to add two numbers without using arithmetic operators?
Answer Posted / pakalapati vijaya rama raju
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c=1;
clrscr();
printf("enter the two numbers");
scanf("%d%d",&a,&b);
while(c<=b)
{
a++;
c++;
}
printf("%d",a);
getch();
}
Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
Suggesting that there can be 62 seconds in a minute?
how do you programme Carrier Sense Multiple Access
When is the “void” keyword used in a function?
What is the meaning of c in c language?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
Why is c so powerful?
What is the mean of function?
Is calloc better than malloc?
Explain modulus operator. What are the restrictions of a modulus operator?
What is header file in c?
Is it better to use malloc() or calloc()?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
What are extern variables in c?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.