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 |
Q-1: Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college.
write a program to copy the string using switch case?
what r the cpu registers r ther?
why ordinary variable store the later value not the initial
typedef struct { int i:8; char c:9; float f:20; }st_temp; int getdata(st_temp *stptr) { stptr->i = 99; return stptr->i; } main() { st_temp local; int i; local.c = 'v'; local.i = 9; local.f = 23.65; printf(" %d %c %f",local.i,local.c,local.f); i = getdata(&local); printf("\n %d",i); getch(); } why there there is an error during compiling the above program?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
Write a program for Overriding.
i want to make a program in which we use input having four digits(4321) and get output its reciprocal(1234).
When is the “void” keyword used in a function?
Can the “if” function be used in comparing strings?
Can you explain the four storage classes in C?
Explain how can I manipulate strings of multibyte characters?