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

Answer Posted / vijayram600

#include<stdio.h>
#include<conio.h>
void main()
{
int a=10,b=20;
clrscr();
while(b--) a++;
printf("Sum is :%d",a);
getch();
}

Is This Answer Correct ?    21 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are low level languages?

871


What is volatile variable how do you declare it?

805


Do string constants represent numerical values?

1170


In C language what is a 'dangling pointer'?

869


How do you define structure?

830


What are the advantages of union?

853


praagnovation

2052


Explain a pre-processor and its advantages.

879


Explain what does it mean when a pointer is used in an if statement?

858


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

934


What is the difference between exit() and _exit() function?

826


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2133


What is pivot in c?

787


What are the different types of C instructions?

1033


What is the deal on sprintf_s return value?

871