What is the correct syntax to access the first element of a pair p?
Which unit does the C++ trigonometric functions use for angles?
The strpbrk() function is used to return a pointer to the character, or a null pointer if no character from s2 occurs in s1.
Which of the following looks only for a match between the value of the expression and one of its case constants.
What happens when a program throws an exception that is not explicitly handled?
Which of the following statements is correct?
What will be the output of the following program?
#include <stdio.h>
int main()
{
extern int ok;
printf("value of ok = %d",ok);
return 0;
}
extern int ok=1000;
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 ____________
What will be the output of the following C++ code?
#include<iostream>
using namespace std;
int &fun()
{
int x = 10;
return x;
}
int main()
{
fun() = 30;
cout << fun();
return 0;
}
#include<iostream>
using namespace std;
int &fun()
{
static int x = 10;
return x;
}
int main()
{
fun() = 30;
cout << fun();
return 0;
}