Explain what?s happening in the first constructor: public
class c{ public c(string a) : this() {;}; public c() {;} }
How is this construct useful?
Answer / vijaykumar
When constructor public c(string a) is called to construct
an object, it first calls the default constructor then the
initialisation procedures in public c(string a).
Is This Answer Correct ? | 4 Yes | 0 No |
What are types of structure?
Program to trim a given character from a string.
C language questions for civil engineering
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
What is the output of the following progarm? #include<stdio.h> main( ) { int x,y=10; x=4; y=fact(x); printf(ā%d\nā,y); } unsigned int fact(int x) { return(x*fact(x-1)); } A. 24 B. 10 C. 4 D. none
what is the difference between arrays and linked list
26 Answers MAHINDRA, Tech Mahindra, Wipro,
int far *near * p; means
What is the use of volatile?
sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?
what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }
how to write palindrome program?
What type is sizeof?