1. C language requires objects to be declared before they can be used. Which lines show objects being declared? 2. The object of line 7 is what type of container? 3. The object of line 7 is what data type for the contents? 4. Which line instructs the compiler to include the stdlib header files as part of the source code? 5. Which library contains the header declarations allowing printing onto the console?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please answer questions 1-10

 

I will rate you thumbs up

Note: the bitwise operator usage is intended to be the the same as arithmetic operators.
Getting started is a program with the code for first operator as follows:
1. #include <stdio.h>
2.
#include <time.h>
3.
4.
5. {
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18. //Below are the expression results for each of the following operations:
Result = A+B;
19.
int main()
int A, B;
int Result;
time_t rawtime=time(NULL);
// get the two input values
printf("input value for A ");
scanf("%d", &A); //then read
//prompt for first value
input
printf("input value for B ");
scanf("%d", &B); //then read input
// print time and date
printf("\nOperators %s", ctime(&rawtime));
//prompt for second value
20.
printf("A+B = %d\n", Result);
21. // repeat above two lines for all 14 operators
22.
return 0;
23.
24.}
Illustration 1: Example that prints time and date
Homework questions: - Answer the following questions referring to Illustration 1
Note: In C language an object has 5 parts: container, data type, name, value, address
Transcribed Image Text:Note: the bitwise operator usage is intended to be the the same as arithmetic operators. Getting started is a program with the code for first operator as follows: 1. #include <stdio.h> 2. #include <time.h> 3. 4. 5. { 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. //Below are the expression results for each of the following operations: Result = A+B; 19. int main() int A, B; int Result; time_t rawtime=time(NULL); // get the two input values printf("input value for A "); scanf("%d", &A); //then read //prompt for first value input printf("input value for B "); scanf("%d", &B); //then read input // print time and date printf("\nOperators %s", ctime(&rawtime)); //prompt for second value 20. printf("A+B = %d\n", Result); 21. // repeat above two lines for all 14 operators 22. return 0; 23. 24.} Illustration 1: Example that prints time and date Homework questions: - Answer the following questions referring to Illustration 1 Note: In C language an object has 5 parts: container, data type, name, value, address
Note: In C language an object has 5 parts: container, data type, name, value, address
1. C language requires objects to be declared before they can be used. Which lines show objects
being declared?
2. The object of line 7 is what type of container?
3. The object of line 7 is what data type for the contents?
4. Which line instructs the compiler to include the stdlib header files as part of the source code?
5. Which library contains the header declarations allowing printing onto the console?
6. Which line is the starting point for the program called by the operating system?
7. Which folder holds the system header files?
8. Which line contains an assignment statement?
9. Every C language program has a 'main' function. That function is described by what line
numbers?
10. Search Cplusplus.com and give the URL which explains and shows an example of scanf usage.
Transcribed Image Text:Note: In C language an object has 5 parts: container, data type, name, value, address 1. C language requires objects to be declared before they can be used. Which lines show objects being declared? 2. The object of line 7 is what type of container? 3. The object of line 7 is what data type for the contents? 4. Which line instructs the compiler to include the stdlib header files as part of the source code? 5. Which library contains the header declarations allowing printing onto the console? 6. Which line is the starting point for the program called by the operating system? 7. Which folder holds the system header files? 8. Which line contains an assignment statement? 9. Every C language program has a 'main' function. That function is described by what line numbers? 10. Search Cplusplus.com and give the URL which explains and shows an example of scanf usage.
Expert Solution
steps

Step by step

Solved in 6 steps

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education