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
Compare interpreters and compilers.
swap 2 numbers without using third variable?
Explain how do you determine whether to use a stream function or a low-level function?
Can math operations be performed on a void pointer?
Can a void pointer point to a function?
Explain is it valid to address one element beyond the end of an array?
Explain the use of 'auto' keyword
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Mention four important string handling functions in c languages .
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
Explain what is the difference between a free-standing and a hosted environment?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What is the difference between int main and void main?
What is the use of getchar functions?
What is realloc in c?