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 |
How do you list files in a directory?
Describe advantages and disadvantages of the various stock sorting algorithms
code for concatination of 2 strings with out using library functions?
Blade logic interview question. 1st round is a written tests with 15 multiple questions from c and c++. All are simple basic question. Like int main () { Int i=65; Return printf(ā%cā, i); } 2nd and 3rd round is technical interview. The position for which I was interview was core UNIX and c. Yes it is for system programming. The company has product name blade server. For their server they are creating their own command for their purpose. Example cd command. We can implement it in a c program by using the chdir() function. So the question asks related to PID, fork, pipe, shared memory, signal. Write a program in c which will act as cp command.
1 Answers BladeLogic, Infosys,
Explain what is #line used for?
Whether there can be main inside another main?If so how does it work?
what are enumerations in C
How do you initialize function pointers? Give an example?
write a program to print calender using for loop.
what will be the output off the following program? #include<stdio.h> int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }
Write a program to print fibonacci series using recursion?
what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?