how to add numbers without using arithmetic operators.
Answers were Sorted based on User's Feedback
Answer / dally
#include<stdio.h>
int main()
{
int a=3,b=5;
while(a--)
b = b++;
printf("%d\n");
}
| Is This Answer Correct ? | 2 Yes | 8 No |
Answer / mobashyr
#include<stdio.h>
int main()
{
int x=5,y=10; //Use scanf otherwise
int z=add(x,y);
return 0;
}
int add(int a,int b)
{
int i;
for(i=0;i<b;i++)
{
a++;
}
return a;
}
| Is This Answer Correct ? | 0 Yes | 6 No |
Answer / satish gaikwad
suppose a=6 and b=3
we can write c=a-(-b)
which will give us c=9
| Is This Answer Correct ? | 5 Yes | 23 No |
what is diffrence between string and character array?
Identify the operators that is not used with pointer a. && b. # c. * d. >>
how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?
What is a MAC Address?
Explain how can you determine the size of an allocated portion of memory?
#define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } what are the outputs?
What is an operator?
Display names and numbers of employees who have 5 years or more experience and salary less than Rs.15000 using array of structures (name, number, experience and salary)
what is constant pointer?
Explain low-order bytes.
biggest of two no's with out using if condition statement
how to generate the length of a string without using len funtion?