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 does 3 periods mean in texting?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What is the importance of c in your views?
Explain enumerated types in c language?
What Is The Difference Between Null And Void Pointer?
What is a stream water?
What is indirection? How many levels of pointers can you have?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is the acronym for ansi?
How are 16- and 32-bit numbers stored?
What is the scope of an external variable in c?
How many levels of indirection in pointers can you have in a single declaration?
How do you initialize pointer variables?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
Explain the use of #pragma exit?