How can the elements in an associative container be efficiently accessed?
Which of the following #pragma warn directives is not valid?
What is the output of the following C code?
#include <stdio.h>
int main()
{
float a = 10;
printf("%.3f\n", a);
}
What should be the output?
int main() {
int new = -10;
cout<<"new is: "<<new;
return 0;
}
what is the output ?
#include<iostream>
using namespace std;
int main()
{
int a=5,b=6;
a= a++ + ++b;
b=++a + ++b;
cout<<a<<" "<<b;
return 0;
}
What will be the output of the following C code?
#include
What does the following piece of code do?
public void func(Tree root)
{
System.out.println(root.data());
func(root.left());
func(root.right());
}
In C language, when you pass an array as an argument to a function, what is actually passed?
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;
}
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
class A{
public:
A(){
cout<<"Constructor called\n";
}
~A(){
cout<<"Destructor called\n";
}
};
int main(int argc, char const *argv[])
{
A *a = new A[5];
delete[] a;
return 0;
}
OnSite
1 Openings
FullTime
Posted 17 days ago