Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
write a program to sort an array of strings use new and delete operatorswrite a program to find the factorial of a number using recursionif we do not
the new and delete operatorsthe c language has explained library functions- malloc and free for dynamic allocation and de-allocation of memory c
default argumentsa default argument is a value that is automatically assigned to a formal variable if the actual argument from the function call is
the scope resolution operator global variables are explained outside any functions and thus can be used by all the functions defined thereafter
variable declarationthis declaration of variables in the c language is permitted only in the starting of their block prior to executable program
commentscomments are integral part of every program comments help in coding debugging and maintaining a program the compiler ignores them they
additional keywords in cclass friend virtual inlineprivate public protected
polymorphismc supports this idea - that different objects do the right thing - by function polymorphism and class polymorphismpoly means many while
inheritance and reuseconsider a car manufacturing company when they require building a new car they have two choices they can start from the scratch
encapsulation and data hidingthe property of being a self-contained unit is known as encapsulation the idea that the encapsulated unit can be used
introduction to cc was developed by bjarne stroustrup at bell laboratories in 1983 originally it was known as c with class c as an enhancement to
different implementations of oopobject-oriented programming is not mainly concerned with the details of the program operation instead it deals with
explain object-oriented programmingobject-oriented programming oop attempts to meet these requirements providing methods for managing enormous
explain structured programmingthe principal idea behind structured programming was as easy as the idea of divide and conquer a computer program could
explain procedural logica procedure or function was explained as a set of specific instructions implemented in sequential manner the data is kept
unionsa union is also like a structure except that only single variable in the union is stored in the allocated memory at a time it is a collection
differences between a pointer and a reference1 a reference must always point to some object where as this restriction is not imposed on a
reference typesthe symbol amp is interpreted as an address operator as well as and operator this operator is also used to declare a reference
enumerated constantsenumerated constants enable the creation of new types and then explain variables of these types so that their values are
structuresa structure is a derived data type it is a combination of logically related data items unlike arrays which are a collection of such as data
relationship between an array and pointersconsider the followingint arr 0123456789if we write arr it is considered as the address of the first
pointer arithmeticwe can manipulate the pointers too we can perform operations such as addition subtraction increment and decrement etc as the
pointer typespointer holds the address of an object permitting for the indirect manipulation of that object they are used in creating linked data
multidimensional arrays- every dimension is specified in separate bracketsegint arr43this is a two-dimensional array with 4 as row dimension and 3 as
various ways of initializing the arrays- the for loop initializes 10 elements with the value of their index void main