How to add two numbers without using arithmetic operators?
Answer Posted / pakalapati vijaya rama raju
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c=1;
clrscr();
printf("enter the two numbers");
scanf("%d%d",&a,&b);
while(c<=b)
{
a++;
c++;
}
printf("%d",a);
getch();
}
Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
how to print the character with maximum occurence and print that number of occurence too in a string given ?
given post order,in order construct the corresponding binary tree
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What is the explanation for the dangling pointer in c?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Explain about block scope in c?
What is c language used for?
If you know then define #pragma?
Is printf a keyword?
Does sprintf put null character?
What is meant by keywords in c?
What are directives in c?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
Where in memory are my variables stored?