This code shows a class integer which contains two int data members. The class contains a constructor, which is parameterized constructor, and a copy constructor.
This code shows a class integer which contains two int data members. The class contains a constructor, which is parameterized constructor, and a copy constructor.
This code shows a class integer which contains two int data members. The class contains a constructor, which is parameterized constructor.
This code shows a class integer which contains two int data members. The class contains a constructor, which is default constructor. It is called when an object of a class is created.
Destructors are usually used to de-allocate memory and do other cleanup for a class object and its class members when the object is destroyed.
The string function strcmp() compares two strings, character by character. It accepts two strings as parameters and returns an integer, whose value is
The string function strcat() concatenates two strings resulting in a single string. It takes two arguments, which are the destination and source strings.
C-style character string is actually a one-dimensional array of characters which is terminated by a null character '\0'.
When an array arguement is passed to a function, only the address of the array gets passed, not a copy of the entire array.