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
How macro execution is faster than function ?
Are there constructors in c?
What is the difference between printf and scanf in c?
Explain what is operator promotion?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What is s or c?
Explain high-order and low-order bytes.
What is linear search?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Why do we use pointer to pointer in c?
Explain what are multidimensional arrays?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Explain what is the general form of a c program?
Write a program to print fibonacci series without using recursion?