write a c program to add two integer numbers without using
arithmetic operator +
Answers were Sorted based on User's Feedback
Answer / jithender palle(vaagdevi wgl)
main()
{
int a=10,b=30,c;
c=a|b;
printf("%d",c);
}
Is This Answer Correct ? | 8 Yes | 21 No |
Answer / anbuchristi
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\n Enter The Number:");
scanf("%d",&a);
printf("\n Enter the Number:");
scanf("%d",&b);
c=a+b;
printf("\n The Result Is");
printf("\n ~~~ ~~~~~~ ~~");
printf("%d",c);
getch();
}
Is This Answer Correct ? | 20 Yes | 74 No |
will u give me old quesrion papers for aptitude for L & t info tech?
YBJBU6
what is the hardware model of CFG( context free grammar)
how to write a program which adds two numbers without using semicolon in c
#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }
char p="data"; printf(p);
How many data structures are there in c?
Write a program to print fibonacci series using recursion?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.
what is the difference between #include<stdio.h> and #include"stdio.h" ?
Is c a great language, or what?