Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
what are pre-processor directives- pre-processor directives are placed at the beginning of a c program they begin with symbol- this is the place
how many levels deep can include files be nested- as such there is no limit to number of levels of nested include files you can have however your
what is a newline escape sequence- a newline escape sequence is signified by the n character- it is used to insert a new line whereas displaying the
describe what is actual arguments- when certain functions are created and used to perform an action on some provided values some values are required
what is the difference between symbol and symbol- the symbol is generally used in mathematical operations its used to assign a value to a given
describe spaghetti programming- spaghetti programming refers to codes which tend to get tangled and overlapped throughout the program- it makes a
which one would you prefer - a macro or a functionactually it depends on the purpose of program- in case of macros corresponding code is inserted
why are all header files not declared in every c program- declaring all header files in each program would result in increase in overall file size
what are the different types of endless loopsan endless loop can be of two typesi a loop that is intentionally designed to go round and round until
explain high-order and low-order bytes- numbers are written from left to right in decreasing order of significance in the same way bits in a byte of
explain the bit fields portable or not- no bit fields arent portable- as bit fields cant machine words and number of bits in a machine word
explain zero based addressing- array subscripts always start at zero- these subscript values are used to identify elements in the array- as
what do you mean by a sequential access file- when writing programs which store and retrieve data in a file its possible to designate that file into
explain protected public private in cthese are three access spaecifiers in c- public - here data members and functions are accessible outside the
what is the difference between early binding and late binding what are advantages of early bindinga late binding refers to function calls which arent
explain the class invariant- its a condition that ensures correct working of a class and defines all the valid states for an object- when an object
what is namespace and explicit container namespace- namespaces are used to group entities such as objects classes and functions under a nameexplicit
determine the types of container class container class can be of 2 types- heterogeneous container - here container class comprise a group of mixed
describe about the container class-class to hold objects in external storage or memory it acts as a generic holder- it has a predefined behaviour and
what is the difference between structure and class- members of structures are public while those of a class are private- classes provide data hiding
what is the use of default constructor- its a constructor that doesnt accept any parameters- if there is no user-defined constructor for a class
what are the benefits of using friend classes- friend classes are useful when a class wants to hide features from users which are required only by
explain one-definition rule odraccording to one-definition rule c constructs should be identically defined in each compilation unit they are used
where are longjmp and setjmp used in c-setjmp and longjmp must not be used in c- longjmp jumps out of the function without unwinding stack this means
how must runtime errors be handled in c- runtime errors in c can be handled using exceptions- this exception handling mechanism in c is developed to