Question Set

1. What will function gcvt() do?





Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.02 pm
    The gcvt() function converts a floating-point number to a string. It converts given value to a null-terminated string. #include <stdlib.h> #include <stdio.h> int main(void) { char str[25]; double num; int sig = 5; /* significant digits */ /* a regular number */ num = 9.876; gcvt(num, sig, str); printf("string = %s\n", str); /* a negative number */ num = -123.4567; gcvt(num, sig, str); printf("string = %s\n", str); /* scientific notation */ num = 0.678e5; gcvt(num, sig, str); printf("string = %s\n", str); return(0); } Output:
    string = 9.876
    string = -123.46
    string = 67800
Show Similar Question And Answers
QA->If function inside another function is called a _____ Function....
QA->The main function of …… is to control the level of sugar in the body?....
QA->The function of Arithmetic and Logic Unit (ALU) is?....
QA->A.T.P (Adenosine Tri phosphate) synthesise is the function of?....
QA->Blood Pressure control is the function of which hormone?....
MCQ->Consider the following statements about conditions that make a metal semiconductor contact rectifying N type semiconductor with work function φs more than work function φM of metalN type semiconductor with work function φs less than work function φM of metalP type semiconductor with work function φs more than work function φM of metalP type semiconductor with work function φs less than work function φM of metal. Of these statements....
MCQ->What will function gcvt() do?....
MCQ->Which of the following statements are correct about functions used in C#.NET? Function definitions cannot be nested. Functions can be called recursively. If we do not return a value from a function then a value -1 gets returned. To return the control from middle of a function exit function should be used. Function calls can be nested.....
MCQ->Consider the following statements for a driving point function F(jω): Re F(jω) is an even function of ω and is 0 or positive for all values of ω.Im F(jω) is an even function of ω and is 0 or positive for all values of ω.Re F(jω) is an odd function of ω and is 0 or negative for all values of ω.Re F(s) = 0 for Re s = 0. Which one of the statements given above is/are correct?....
MCQ->Which of the following statements are correct? Data members ofa class are by default public. Data members of a class are by default private. Member functions of a class are by default public. A private function of a class can access a public function within the same class. Member function of a class are by default private.....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution