how to add numbers without using arithmetic operators.
Answer Posted / abdur rab
#include <stdio.h>
int main ( int argc, char* argv [ ] )
{
int value1 = 10;
int value2 = 5;
printf ( "\n The sum is :%d", value1 | value2 );
}
| Is This Answer Correct ? | 10 Yes | 12 No |
Post New Answer View All Answers
How pointers are declared?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is conio h in c?
What is c basic?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What is the general form of function in c?
Is there a way to switch on strings?
What is a macro in c preprocessor?
Why can't I perform arithmetic on a void* pointer?
What are types of functions?
Explain how do you convert strings to numbers in c?
write a programming in c to find the sum of all elements in an array through function.
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What are the advantages and disadvantages of c language?
write a program to copy the string using switch case?