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 is typedef?

1 Answers  


What is Function Pointer? Explain with example?

3 Answers  


Write a program to print fibonacci series without using recursion?

0 Answers  


for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????

7 Answers  


Explain what are multibyte characters?

0 Answers  


Is sizeof a keyword in c?

0 Answers  


Explain command-line arguments in C.

1 Answers  


Explain how can type-insensitive macros be created?

0 Answers  


What are the types of assignment statements?

0 Answers  


Explain how can you restore a redirected standard stream?

0 Answers  


Explain can the sizeof operator be used to tell the size of an array passed to a function?

0 Answers  


How can you print HELLO WORLD without using "semicolon"?

7 Answers   HCL, Infosys,


Categories