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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you initialize pointer variables?

616


Describe the steps to insert data into a singly linked list.

624


Explain how can you tell whether two strings are the same?

587


How does #define work?

652


What is the purpose of the statement: strcat (S2, S1)?

642






Can the curly brackets { } be used to enclose a single line of code?

717


How do I copy files?

625


Is c weakly typed?

581


Who is the founder of c language?

688


cavium networks written test pattern ..

3600


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

722


Explain how can you tell whether a program was compiled using c versus c++?

581


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

681


What is mean by data types in c?

555


How are variables declared in c?

601