1.

What is the scope of typedef defined data types?(a) inside that block only(b) whole program(c) outside the program(d) main functionI had been asked this question during an interview for a job.I'm obligated to ask this question of User Defined Types topic in division Source Files, Classes and Operator Overloading in C++ of C++

Answer»

Right choice is (b) whole PROGRAM

The explanation is: We are defining the user-defined data type to be availed only inside that program, if we want to USE ANYWHERE means we have to define those types in the HEADER file.



Discussion

No Comment Found

Related InterviewSolutions