How to add two numbers without using arithmetic operators?
Answer Posted / jayanth kothapalli
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
Printf("Enter Two numbers:");
scanf("%d,%d",&a,&b);
c=-(-a-b);
printf("sum is = %d",c);
getch();
}
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
what is bit rate & baud rate? plz give wave forms
What is clrscr ()?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What is a program flowchart and explain how does it help in writing a program?
What is the difference between local variable and global variable in c?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What is indirection? How many levels of pointers can you have?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
Write a factorial program using C.
What is scope of variable in c?
What is the advantage of using #define to declare a constant?
What does c value mean?
If fflush wont work, what can I use to flush input?
Why can’t we compare structures?
Is c programming hard?