What will be the output of the following C++ code?
C is a
Which of the following is defined under the header file time.h?
How do you initialize an array in C?
The concept of deciding which function to invoke during runtime is called ______________________
What is the output of the following C program?
#include<stdio.h>
void main ()
{
int a[5] = {5,1,15,20,25};
int i,j,m;
i=++a[1];
j=a[1]++;
m=a[i++];
printf("%d %d %d",i,j,m);
}
What will be the output of the following C++ code?
What will be the output of the following C++ code?
#include<iostream>
using namespace std;
class A
{
~A(){
cout<<"Destructor called\n";
}
};
int main()
{
A a;
return 0;
}
What is the output of the following C++ code?
1) #include<iostream>
2) using namespace std;
3) int main()
4) {
5) const int min_age = 18;
6) const int max_age = 35;
7) min_age = 21;
8) cout << min_age << endl;
9) return 0;
10) }
What will be the output of the following C++ code?
#include <iostream>
#include <vector>
#include <forward_list>
using namespace std;
int main()
{
forward_list<int> fl1 = {1, 7, 8, 9, 10};
forward_list<int> fl2 = {2, 3, 4, 5, 6};
fl1.splice_after(fl1.begin(), fl2);
for (int& c : fl1)
cout << c << " ";
cout << endl;
return 0;
}