Concept explainers
Which of the following preprocessor directive is correct?
Want to see the full answer?
Check out a sample textbook solutionChapter 1 Solutions
Introduction to Programming with C++
Additional Engineering Textbook Solutions
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Introduction To Programming Using Visual Basic (11th Edition)
Database Concepts (8th Edition)
Modern Database Management
SURVEY OF OPERATING SYSTEMS
Web Development and Design Foundations with HTML5 (8th Edition)
- NOTE: Please don't Copy Paste from another question similar to this. I looked through them and nothing works properly. Please write in Python and C++ language this given code.arrow_forwarduse ibm is400 series to answer the following question (the output should shown in screenshot) 1 - develop a new Library called MnnLIB1 (NN is your student login id number) using the command CRTLIB 2 - develop a new Jobq MnnJOBQ1 and Outq MnnOUTQ1 in the Library MnnLIB1 using the command crtjobq and crtoutq 3 - Grant *PUBLIC *USE Authority to your MnnLIB1 library using the command wrkobj MnnLIB1 and then option 2 4 - Submit 3 jobs using sbmjob in your MnnJOBQ1, these jobs will not run, since they are not attached to any sub-system. Check it out by using wrkjobq command 5 - Change the 3 jobs submitted in step #4 to run in sub-system QINTER and change the out to MnnOUTQ1. These jobs will run, and the results will be in MnnOUTQ1. Check it out by using wrkoutq command 6 - develop a new Source File called MnnSRC in your library MnnLIB1 using command crtsrcpf 7 - develop a new Save File called MnnSAVF in your library MnnLIB1 using command crtsavf 8 - Run DSPJOBLOG command and save the…arrow_forwardWhich of the following preprocessor directive will work with all C++ compilers? a. #include < iostream>b. #include <iostream >c. include <iostream>d. #include <iostream>arrow_forward
- ROUTE TBE TABLE OF QUESTION.arrow_forwardWhat is the output of the following C+ + code? (2, 3)arrow_forwardLook at the differences between max1 and max22. What is the difference?3. Do the two functions do the same amount of computation?4. If so, do you think that the two functions will run in the same amount of time? #include <stdio.h>#include <time.h>#include <stdlib.h> // For the assignment, be sure to run unmodified code, but you are free to // play around with the code to try out different parameters or different// implementations. // arrs is a 16384 element array of 256 integer arrays (a 2D array)// each function is run 50 times (numiters) in order to increase the runtime// into the range of seconds (which is the time printed) int max1(int** arrs, int narrs, int arrlen) { int max = 0; for (int i=0; i<narrs; i++) { for (int j=0; j<arrlen; j++) { if (arrs[i][j] > max) max = arrs[i][j]; } } return max;} int max2(int** arrs, int narrs, int arrlen) { int max = 0; for (int j=0; j<arrlen; j++) { for (int i=0; i<narrs; i++) {…arrow_forward
- Q NO 1: There are two ways to pass arguments to functions. Pass by value and pass by reference. Let’s suppose you have to write multiplication function which receives two integers (as arguments) given by user from main. The multiplication operation will be carried out through their addresses. Solve this problem by writing a C++ program.arrow_forwardThis assignment will give you practice on basic C programming. You will implement a few Cprogramsarrow_forwardI need to write a code in c, and it also has to meet the following requiremnts ,Write a very simple program that: 1. Has a main function (all C executables have one). 2. Has two different functions that are called by the program. 3. Uses at least one of the standard libraries.arrow_forward
- This assignment will give you practice on basic C programming. You will implement a few Cprogramsarrow_forwardQuestion 10 Which statement of the following is the most appropriate? Group of answer choices In C++, the allo operator is used to allocate dynamic memory. The delete operator is used to free dynamic memory. In C++, the new operator is used to allocate dynamic memory. The delete operator is used to free dynamic memory. In C++, the new operator is used to allocate dynamic memory. The clean operator is used to free dynamic memory. In C++, the allo operator is used to allocate dynamic memory. The clean operator is used to free dynamic memory.arrow_forwardWhich of the following is part of the library header file? (Check all applicable answers) Question 1 - Which of the following is part of the library header file? (Check all applicable answers) Function prototypes Definition of constants Typedef and Structure definitions All 2) Which of the following is NOT true about libraries? Question 2 - Which of the following is NOT true about libraries? It is bad to use a library when its utility to a given problem is minimal A library header file does not contain code for any of the functions Using library saves time in programming None 3) Which of the following functions can be used to flush the buffer? Question 3 - Which of the following functions can be used to flush the buffer? flush() clear() refresh() move() 4) The curses library is a basic graphics library for use on a…arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning