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
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is the general form of #line preprocessor?
Is fortran faster than c?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What is a #include preprocessor?
What is #include stdlib h?
How we can insert comments in a c program?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Why doesn't C support function overloading?
What is the use of function overloading in C?
What is use of pointer?
How will you find a duplicate number in a array without negating the nos ?
Explain the difference between the local variable and global variable in c?
What is the general form of function in c?