1. What is a scalar variable? 2. What is an array? 3. What is scope (define it i
ID: 3534849 • Letter: 1
Question
1. What is a scalar variable? 2. What is an array? 3. What is scope (define it in terms of global versus local)? 4. What are the values in an array called? 5. What is the position of an array called? 6. Using sample as your array name, how can you represent the length of the array? 7. How would you display the last element in an array named sample? 8. Print the elements in an array named CheckerPieces. 9. Write a for-loop to find the minimum number in an array named numbers. 10. Show the steps of how bubble sort works using the following array of ints: 13,52,67,2,48. Also show the steps using chars:Explanation / Answer
Here are the rest of the answers i cudnt mention in my first answer. Please rate with 5 stars now :)
11.
float squareroot(int n)
{
return sqrt(n);
}
12.
Best explanation I ever heard of this.
Say I want to share a web page with you.
If I tell you the URL, I'm passing by reference. You can use that URL to see the same web page I can see. If that page is changed, we both see the changes. If you delete the URL, all you're doing is destroying your reference to that page - you're not deleting the actual page itself.
If I print out the page and give you the printout, I'm passing by value. Your page is a disconnected copy of the original. You won't see any subsequent changes, and any changes that you make (e.g. scribbling on your printout) will not show up on the original page. If you destroy the printout, you have actually destroyed your copy of the object - but the original web page remains intact.
14.fopen(fp) is used to open files
15.fclose(fp) is used to close file
Note: fp is the file descriptor.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.