How to add two numbers without using arithmetic operators?
Answer Posted / ramanareddy
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter the two numbers");
scanf("%d %d",%a,&b);
c=(-(-a-b));
printf("sum is = %d",c");
getch();
}
Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What does %c do in c?
What is string function in c?
How is a structure member accessed?
Can you please explain the scope of static variables?
difference between object file and executable file
I need a sort of an approximate strcmp routine?
Why is c known as a mother language?
Explain pointers in c programming?
What is a nested loop?
Explain what are the different file extensions involved when programming in c?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What is the difference between declaring a variable and defining a variable?
Can the curly brackets { } be used to enclose a single line of code?
How can I write a function analogous to scanf?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.