How many orders of traversal are applicable to a binary tree (In General)?
Operator overloading can be implemented by
#pragma exit is primarily used for?
#define square(x) x*x
int main()
{
int i; i = 81/square(3);
printf("%d", i);
return 0;
}
What will happen in this code?
int a = 100, b = 200;
int *p = &a, *q = &b;
p = q;
Which of the following is the correct way to assign values to a forward_list f?
#include<stdio.h>
int main()
{
int a[10][20][30] = {0};
a[5][2][1] = 2;
return 0;
}
#include <iostream>
using namespace std;
int divide (int a, int b=2)
{
int r;
r=a/b;
return (r);
}
int main ()
{
cout << divide (12) ;
cout << divide (20,4) << '\n';
return 0;
}
What is the purpose of exception specification in C++?
What will be the output of the following C code?
#include <stdio.h>
void f(int a[2][])
{
a[0][1] = 3;
int i = 0, j = 0;
for (i = 0;i < 2; i++)
for (j = 0;j < 3; j++)
printf("%d", a[i][j]);
}
void main()
{
int a[2][3] = {0};
f(a);
}