#include<stdio.h>
int main()
{
int x=123;
printf("%d",1+x ++);
return 0;
}
Which of the following features is not provided by C?
Which of three sizes of floating point types should be used when extended precision is required?
#include <iostream>
using namespace std;
int main()
{
int a = 5, b = 10, c = 15;
int *arr[ ] = {&a, &b, &c};
cout << arr[1];
return 0;
}
What will be the output of the following C++ code?
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
cout << RAND_MAX << endl;
}
What is the time complexity of following code:
int i, j, k = 0;
for (i = n / 2; i <= n; i++) {
for (j = 2; j <= n; j = j * 2) {
k = k + n / 2;
}
}
Which of the given statements are false?
i. extern int func;
ii. extern int func2(int,int);
iii. int func2(int,int);
iv. extern class foo;
What will be the output?
#include <stdio.h>
int main()
{
char *_ptr = malloc(1);
_ptr = malloc(1);
free(_ptr);
return 0;
}
What will be the output of the following C++ code?
#include <stdio.h>
#include <math.h>
int main()
{
int param, result;
int n;
param = 8.0;
result = frexp(param, &n);
printf("%d\n", param);
return 0;
}