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
How can a program be made to print the line number where an error occurs?
What is the Purpose of 'extern' keyword in a function declaration?
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
How the c program is executed?
What are the advantages and disadvantages of c language?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
Is sizeof a keyword in c?
Can a pointer point to null?
What is an lvalue in c?
Are pointers integers in c?
In a switch statement, explain what will happen if a break statement is omitted?
Can we compile a program without main() function?
Where are local variables stored in c?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
C program to find all possible outcomes of a dice?