How to add two numbers without using arithmetic operators?
Answer Posted / ramanareddy
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter the two numbers");
scanf("%d %d",%a,&b);
c=(-(-a-b));
printf("sum is = %d",c");
getch();
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Why isnt there a numbered, multi-level break statement to break out
Explain what are linked list?
What does the file stdio.h contain?
How can you avoid including a header more than once?
How can I open files mentioned on the command line, and parse option flags?
Explain pointer. What are function pointers in C?
What is pass by reference in functions?
What is NULL pointer?
Is this program statement valid? INT = 10.50;
What does typeof return in c?
What is calloc in c?
What is the value of c?
Why c is called object oriented language?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
c language interview questions & answer