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
Explain what is the difference between functions getch() and getche()?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Why is C language being considered a middle level language?
What is omp_num_threads?
Describe explain how arrays can be passed to a user defined function
How can I automatically locate a programs configuration files in the same directory as the executable?
What is the use of sizeof?
Write a code on reverse string and its complexity.
When was c language developed?
Why do some versions of toupper act strangely if given an upper-case letter?
What are the 5 elements of structure?
What is union and structure?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers