How can the member functions in a container be accessed?
Pick the odd one out among the following options.
Let x be an integer which can take a value of 0 or 1. The statement
if(x = =0)
x = 1;
else
x = 0;
is equivalent to which one of the following?
What is the output of the following C code?
int main()
{
int v1=0, v2=20;
char n1=1, n2=10;
if(v1, v2, n1, n2)
printf("CSE");
}
What is the output of the following program?
int increment(int *i)
{
return (*i + 1);
}
int main()
{
int i = 10, j;
j = increment(&i);
printf("%d", j);
}
How can the heap be protected from affecting the memory?
What is the output of the following C code?
#include<stdio.h>
int main()
{
int i=2;
if (i==0)
{
printf("Hello");
exit();
}
main(i-2);
}
What is the output of the following code?
#include <stdio.h>
int add(int, int);
int main()
{
int x=2, y=3, sum;
sum = add(x, y);
printf("%d", sum);
}
int add(int p, int r)
{
int a;
a = p + r;
return a;
}
What happens when the function call operator '()' is overloaded?