write a c program to add two integer numbers without using
arithmetic operator +

Answers were Sorted based on User's Feedback



write a c program to add two integer numbers without using arithmetic operator +..

Answer / jithender palle(vaagdevi wgl)

main()
{
int a=10,b=30,c;
c=a|b;
printf("%d",c);
}

Is This Answer Correct ?    8 Yes 21 No

write a c program to add two integer numbers without using arithmetic operator +..

Answer / reddy

(a+b)=square root([(4ab)+[(a-b)(a-b)]])

Is This Answer Correct ?    8 Yes 31 No

write a c program to add two integer numbers without using arithmetic operator +..

Answer / anbuchristi

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\n Enter The Number:");
scanf("%d",&a);
printf("\n Enter the Number:");
scanf("%d",&b);
c=a+b;
printf("\n The Result Is");
printf("\n ~~~ ~~~~~~ ~~");
printf("%d",c);
getch();
}

Is This Answer Correct ?    20 Yes 74 No

Post New Answer

More C Interview Questions

What does the file stdio.h contain?

0 Answers  


consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value

4 Answers   TCS,


Can a binary search tree be used as an index? If yes, how? Explain

0 Answers   TCS,


What is variable declaration and definition in c?

0 Answers  


What are run-time errors?

0 Answers  






What are the c keywords?

0 Answers  


main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }

1 Answers   Vector, Vector India,


What is wrong in this statement? scanf(“%d”,whatnumber);

0 Answers  


Is return a keyword in c?

0 Answers  


how can i calculate mean,median,mode by using c program

1 Answers   HCL,


program for swapping two strings by using pointers in c language

1 Answers  


Prove or disprove P!=NP.

5 Answers   Microsoft,


Categories