write a program to find out roots of quadratic equation
"x=-b+-(b^2-4ac0^-1/2/2a"
Answers were Sorted based on User's Feedback
Answer / moolshankershukla
this quadratic equation is not well formet . this is wrong
formet.
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / sanjay kumar
this quadratic equation is well formet . this is wrong
formet.
| Is This Answer Correct ? | 3 Yes | 1 No |
main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 b. 2, 100 c. 4, 100 d. 4, 4
18 Answers HCL, IBM, Infosys, LG Soft, Satyam,
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
#define prod(a,b) a*b main() { int x=3,y=4; printf("%d",prod(x+2,y-1)); }
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
write a program in c to merge two array
write a c program to print magic square of order n when n>3 and n is odd?
void main() { int i=10, j=2; int *ip= &i, *jp = &j; int k = *ip/*jp; printf(“%d”,k); }
Write a program to receive an integer and find its octal equivalent?
how can i cast a char type array to an int type array
How to swap two variables, without using third variable ?
104 Answers AB, ADP, BirlaSoft, Cisco, Cygnet Infotech, HCL, Hewitt, Honeywell, HP, IBM, Infosys, Manhattan, Microsoft, Mobius, Percept, Satyam, SofTMware, TCS, Wipro, Yamaha,
main( ) { void *vp; char ch = ‘g’, *cp = “goofy”; int j = 20; vp = &ch; printf(“%c”, *(char *)vp); vp = &j; printf(“%d”,*(int *)vp); vp = cp; printf(“%s”,(char *)vp + 3); }
String reverse with time complexity of n/2 with out using temporary variable.