write a c program to add two integer numbers without using
arithmetic operator +
Answer Posted / syamanth
main()
{
int a,b,c;
printf("enter a,b values:");
scanf("%d%d",&a,&b);
c=((a)-(~b)+1);
printf("sum of a,b is %d",c);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program to print factorial of given number using recursion?
What is the use of ?: Operator?
Write a program for finding factorial of a number.
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Is int a keyword in c?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
Tell me is null always defined as 0(zero)?
What are the advantages and disadvantages of pointers?
what are the different storage classes in c?
Do you know null pointer?
How do you declare a variable that will hold string values?
What is the difference between new and malloc functions?
Write a program to reverse a given number in c language?
Can a pointer be static?