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() { char a[4]="HELL"; printf("%s",a); }
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); }
C program to print magic square of order n where n > 3 and n is odd
how to return a multiple value from a function?
Write a program that find and print how many odd numbers in a binary tree
main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; } a. Runtime error. b. Runtime error. Access violation. c. Compile error. Illegal syntax d. None of the above
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
main() { static int a[3][3]={1,2,3,4,5,6,7,8,9}; int i,j; static *p[]={a,a+1,a+2}; for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%d\t%d\t%d\t%d\n",*(*(p+i)+j), *(*(j+p)+i),*(*(i+p)+j),*(*(p+j)+i)); } }
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
Write a program to print a square of size 5 by using the character S.
Program to Delete an element from a doubly linked list.
4 Answers College School Exams Tests, Infosys,
main() { int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf(" %d ",*c); ++q; } for(j=0;j<5;j++){ printf(" %d ",*p); ++p; } }