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 |
What does the file stdio.h contain?
consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value
Can a binary search tree be used as an index? If yes, how? Explain
What is variable declaration and definition in c?
What are run-time errors?
What are the c keywords?
main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 Answers Vector, Vector India,
What is wrong in this statement? scanf(“%d”,whatnumber);
Is return a keyword in c?
how can i calculate mean,median,mode by using c program
program for swapping two strings by using pointers in c language
Prove or disprove P!=NP.