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
plz let me know how to become a telecom protocol tester. thank you.
What is #ifdef ? What is its application?
What is a pointer in c?
Explain the use of 'auto' keyword
What is typedef struct in c?
main() { printf("hello"); fork(); }
Where is c used?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
Explain built-in function?
What is %s and %d in c?
How can I direct output to the printer?
What is the difference between a function and a method in c?
What is the use of printf() and scanf() functions?
Write a program to print fibonacci series using recursion?