Вы находитесь на странице: 1из 1

**38)

char *str1 = "somestring";


char *str2 = "somestr";
str1 = str2;
how should str1 be declared so that it does not get modified?

39) what are steps to resolve name resolution of the class


a)look for class
b)go for immediate base class
c)if the base class is invoked in the nested then go for the class nested.
d)if the base class is in block scope see for the class in that block scope

a) a,b,c,d
b) d,c,b,a
c) d.c.a.b
d) b,c,d,a
40).
Case 1: For(i=0;i<=100;i++)
{
if(i%2)
{
Cout<<I;
}
}
Case 2: for(i=0;i<=100;i++)
{
If(i&ox0001)
{
Cout<<I;
}
}
Which case would display odd numbers frm 1 to 100
Ans). Both the cases.
4.which of the following are integer literals in C++ standard
a. bool b. short c. char d. all the above

Вам также может понравиться