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

How can a program be made to print the line number where an error occurs?

643


What is the Purpose of 'extern' keyword in a function declaration?

646


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

705


How the c program is executed?

626


What are the advantages and disadvantages of c language?

556






1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3136


Is sizeof a keyword in c?

574


Can a pointer point to null?

582


What is an lvalue in c?

690


Are pointers integers in c?

604


In a switch statement, explain what will happen if a break statement is omitted?

631


Can we compile a program without main() function?

628


Where are local variables stored in c?

568


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

573


C program to find all possible outcomes of a dice?

1848