During the writing and compiling of a program, what two steps must be taken to m
ID: 3780248 • Letter: D
Question
During the writing and compiling of a program, what two steps must be taken to make use of a library? A program has been written that makes use of both the math library and a custom widget library. The code for the program is stored in a file named myprog.c. The math library file resides in a standard system directory but the widget library file, named libwidget.a, resides in a custom directory/lib/widge. For the gcc compiler, write the command necessary to compile the code and build an executable, including all command line arguments. What, if any, are the similarities and differences between a device driver and a system library? The following code snipet contains some unfamiliar text: #include #include #include /*...*/VINTRUST FILE INFO FileData; nemset(&FileData;, 0, sizeof(FileData)); FileData.cbStruct = sizeof(VINTRUST FILE INFO); FileData .pcwszFilePath = pwszSourceFile; FileData.hFile = NULL; FileData.pgKnovnSubject = NULL; How could one go about discovering the definition of WINTRUST FILE INFO, and how to interpret it? The following formula can be used to describe how an investment increases in value over time through the accumulation of compound interest: F = Ie^ry where I is the amount initially invested, r is the interest rate, y is the number of years of interest accumulation, and F is the final value accumulated. For example given an initial investment I of 941.76, accumulating interest at a rate r of 0.03 for a period y of 2 years results in a final value F of 1000,00. Write a program that calculates the needed initial investment given values for the other three variable. The program should prompt the user for the needed values, and then report the.Explanation / Answer
1)include the library in the program using #include and make sure use the namespace
3) Drivers are basically tied to hardware and its not portable between multiple platforms whereas library is a software which have no direct hardware dependencies and is portable
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.