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

will u give me old quesrion papers for aptitude for L & t info tech?

1 Answers   Hindustan, L&T,


YBJBU6

1 Answers  


what is the hardware model of CFG( context free grammar)

0 Answers   Microsoft,


how to write a program which adds two numbers without using semicolon in c

2 Answers  


#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }

7 Answers   Infosys,


char p="data"; printf(p);

2 Answers  


How many data structures are there in c?

0 Answers  


Write a program to print fibonacci series using recursion?

0 Answers  


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

0 Answers  


Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.

3 Answers   Infosys,


what is the difference between #include<stdio.h> and #include"stdio.h" ?

6 Answers   TCS,


Is c a great language, or what?

0 Answers  


Categories