How many standard output stream classes are there in C++?
What will be the output of the following C++ code?
by default how are the values passed in the functions in c++?
What kind of functions are the min and max functions in C++?
When the pointer passed to the realloc() function is NULL, the function is equivalent to which of the following?
What are command-line arguments?
What will be the output of the following C++ code?
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n, m;
n = abs(23);
m = abs(-11);
printf("%d", n);
printf("%d", m);
return 0;
}
What is the output of the following C program?
#include <stdio.h>
int main()
{
int a = 10, b = 20, c = 30;
if (a > b > c)
printf("FALSE");
else
printf("TRUE");
return 0;
}
What is the output of the following C code that uses a union?
#include "stdio.h"
union example{
int a;
int b;
};
int main(){
union example obj;
obj.a = 10;
printf("%d %d", obj.a, obj.b);
return 0;
}
What will be the output of the following C++ code?
#include<iostream>
#include<iterator>
#include<vector>
using namespace std;
int main()
{
vector<int> ar = { 1, 2, 3, 4, 5 };
vector<int>::iterator ptr = ar.begin();
advance(ptr, 2);
cout << *ptr << endl;
return 0;
}