Write a program to get the value of sin (x) using a library
function , when x is given in degrees.
Answer / subrat
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float x,value;
printf("\n Enter a degree to get its Sin(x)
value=");
scanf("%f",&x);
clrscr();
value=sin(x);
printf("\n Value of Sin(x)=%f",value);
getch();
}
| Is This Answer Correct ? | 16 Yes | 7 No |
Explain about Garbage Collector?
How would perform Pattern Matching in C++?
What is c++ hash?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
diff between pointer and reference in c++?
Where and why do I have to put the "template" and "typename" keywords?
Difference between delete and free.
How do you invoke a base member function from a derived class in which you’ve overridden that function?
Can we specify variable field width in a scanf() format string? If possible how?
Describe friend function & its advantages.
What is operators in c++?
What is a syntax in c++?