1. Explain the difference between declaration and definition of a variable. Can you declare a variable without defining it? 2. What is the difference between a string and an array of type char? How...


1. Explain the difference between declaration and definition of a variable. Can you declare a variable without defining it?


2. What is the difference between a string and an array of type char? How many array elements does the string “abcd” use?


3. Between using 6 variables and an array of 6 elements, what considerations determine the choice of one scheme in preference to the other?


4. A signed char variable can be assigned (A) an integer not exceeding 255, (B) the constant “2”, (C) an integer between -127 and 128, (D) none of these.


5. The array intarr[20] needs (A) 20 bytes, (B) 20 X size of (int) bytes, (C) 40 bytes, (D) 80 bytes.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here