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
How can I read/write structures from/to data files?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What is meant by inheritance?
What is the general form of function in c?
Write a program to reverse a given number in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What is the best way of making my program efficient?
Explain which function in c can be used to append a string to another string?
How do we declare variables in c?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What is a macro?
What is typeof in c?
Explain how can type-insensitive macros be created?
What are qualifiers in c?
Disadvantages of C language.