What do the functions atoi(), itoa() and gcvt () do? Show how would you use them in a program.
Correct Answer
atoi() Converts a string to an integer itoa() Convert an integer to a string gcvt() Converts a floating-point number to a string #include "stdlibh" main() { char s[] = "12345"; char buffer [15], string[20]; int i; i = atoi (s); printf("\n%d",i); gcvt (20141672, 4, buffer); printf ("\n%s", buffer); itoa(15, string,2); printf ("\n%s", string); }
More questions
1. In the relational model, relationships between relations or tables are created by using:
Correct Answer: Object Repository means not a collection of objects it's a common repository for all the people (testing, developers) for seeing all the data in single login for example QA wants to see 5 testers works then he goes to each person login and see the data It's very difficult job for this we can use Object Repository
Correct Answer: The OSI Model is used as a reference model The primary reason the OSI model was created was so that different networks could inter-operate Hence, different networks could communicate