The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is
Select the right option: Given the variables p, q are of char type and r, s, t are of int type (1) t = (r * s) / (r + s); (2) t = (p * q) / (r + s);
If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const member function)?
How many copies of a class static member are shared between objects of the class?
Which of the following language feature is not an access specifier in C++?
Under which of the following circumstances, synchronization takes place?
How do we declare an abstract class?
Identify the user-defined types from the following?
The size of an object or a type can be determined using which operator?
Which of the following correctly declares an array?
What happens when a null pointer is converted into bool?
Identify the type of the variables. typedef char* CHAR;. CHAR p,q;
Which one of the following is not a fundamental data type in C++
Which classes allow primitive types to be accessed as objects?
Which looping process checks the test condition at the end of the loop?
Value of a in a = (b = 5, b + 5); is
Inline functions are invoked at the time of
Select the right option.
Given the variables p, q are of char type and r, s, t are of int type. 1.t = (r * s) / (r + s);
2. t = (p * q) / (r + s);
The data elements in structure are also known as what?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int arr[] = {4, 5, 6, 7};
6.int *p = (arr + 1);
7.cout << *arr + 9;
8.return 0;
9.}
How do we declare an ‘interface’ class?
Under which of the following circumstances, synchronization takes place?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int array[] = {10, 20, 30};
6.cout << -2[array];
7.return 0;
8.}
What will be used when terminating a structure?
Which of the following below can perform conversions between pointers to related classes?
Which of the following operators can be implemented as a nonmember operator?
Which of the following below is /are a valid iterator type?
What is the Difference between struct and class in terms of Access Modifier?
Identify the incorrect statements.
int var = 10;
int *ptr = &(var + 1); //statement 1
int *ptr2 = &var; //statement 2
&var = 40; //statement 3
What is the output of this program? 1.#include
2.using namespace std;
3.enum colour {
4.green, red, blue, white, yellow, pink
5.};
6.int main()
7.{
8.cout << green<< red<< blue<< white<< yellow<< pink;
9.return 0;
10}
The declaration of structure is also called as?
In C++, what is the sign of character data type by default?
Which of the following is true about const member functions?
The output of {int a = 5; int b = 10; cout << (a>b?a:b);}
Which of the following will not return a value?
For what values of the expression is an if-statement block not executed?