How to add two numbers without using arithmetic operators?
Answer Posted / pugalarasu
int sum(int num1,int num2)
{
for(int i=0;i<num2;i++)
num1++;
return num1;
}
| Is This Answer Correct ? | 39 Yes | 50 No |
Post New Answer View All Answers
Why is #define used?
What is nested structure?
When should a type cast not be used?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
Why is c faster?
Explain what is the benefit of using const for declaring constants?
What is wrong with this statement? Myname = 'robin';
Explain what does the function toupper() do?
What is wrong with this code?
Explain what are binary trees?
What is typedef example?
Explain enumerated types in c language?
What is define directive?
Can the sizeof operator be used to tell the size of an array passed to a function?