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 |
What does the ios::ate argument do?
What are the advantages of using a pointer?
How can you say that a template is better than a base class?
What is c++ best used for?
When does a name clash occur?
What do the keywords volatile and mean mutable?
What do you mean by “this” pointer?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What is a mutex and a critical section.Whats difference between them?How do each of them work?
What are built-in functions? What is the syntax for the definition?
What is the v-ptr?