11. ______ is the collection of similar-type elements ?
A. Structure
B. Union
C. Array
D. String
(c)
12. What can not be declared :
A. Array of Integers
B. Array of Pointers
C. Array of Structures
D. None of these
(d)
13. Which of the following is not a arithmetic operation :
A. n/=10
B. n*=10
C. n+=10
D. n!=10
(d)
14. Which datatype is not applicable for mod(%) operation ?
A. int
B. float
C. char
D. None of these
(b)
15. Strings are character arrays. The last index of it contains the null-terminated character :
A. \t
B. \n
C. \0
D. \o
(c)
Ans 70 will be int. Remember return 0. Here 0 is int
Dear Anish,
If a return value isn’t required, declare the function to have void return type. If a return type isn’t specified, the C compiler assumes a default return type of int. In a main function, the return statement and expression are optional.