81. Problems associated with dangling pointer can be solved :
A. Assigning it to garbage value
B. Assigning it to NULL value
C. Assigning it to 0
D. None of these
(c)
82. Which header file can be used to define i/o function prototypes and macros?
A. stdio.h
B. conio.h
C. stlib.h
D. alloc.h
(a)
83. What is the use of ‘%%’ specifier ?
A. Finding remainder
B. Finding quotient
C. Printing % sign
D. None of the above
(c)
84. Which of the following statement is wrong about Java Programming ?
A. Java is compiled and Interpreted
B. Java follows OOPs paradigm
C. Java uses destructors to undo work done by constructors
D. Java is platform independent
(c)
85. Which is used to find and fix bugs in the java programs ?
A. JVM
B. JRE
C. JDK
D. JDB
(d)
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.