Latest Answer: overloading is class declaration.overriding is methid declaration. ...
Latest Answer: Copy constructor intialize the variable and copies from existed object while Assingnment operator uses intialized object. ...
C
Latest Answer: correct ans is A: y=7.....bcoz condition is if(x=7) (assignment)and not (x==7) (comparison) ...
Write one statement equivalent to the following two statementsx=sqr(a);return(x);Choose from one of the alternativesa.return(sqr(a));b.printf("sqr(a)");c.return(a*a*a);d.printf("%d",sqr(a));
D
Which of the following about automatic variables within a function is correct ?a.its type must be declared before using the variableb.they are localc.they are not initialised to zerod.they are global.
C
Main must be written asa.the first function in the programb.Second function in the programc.Last function in the programd.any where in the program
C
What is true about the followingC Functionsa.Need not return any valueb.Should always return an integerc.Should always return a floatd.Should always return more than one value.
D
Consider the following structure:struct num nam{int no;char name[25];};struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};..........printf("%d%d",n1[2],no,(*(n1 Consider the following structure:struct num nam{int no;char name[25];};struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};..........printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1);What does the above statement print?a.8,9b.9,9c.8,8d.8,unpredictable value
C
What does the following function print?func(int i){if(i%2)return 0;eale return 1;}main(){int =3;i=func(i);i=func(i);printf("%d",i);}a.3b.1c.0d.2
C
Latest Answer: semicolon ...
View page << Previous 1 [2] 3 4 5 6 7 8 9 Next >>

Go Top