What does the '\a' escape code represent?
The function used to resize a previously allocated memory block is:
Which is used to indicate single precision value?
Which data structure is best suited for converting recursive implementation of an algorithm
#include <iostream>
using namespace std;
int main ()
{
int a,b,c;
a=2;
b=7;
c = (a>b) ? a : b;
cout << c << '\n';
}
How do access specifiers in classes help with Abstraction?
What is an External iterator in C++?
Consider the following program written in pseudo-code. Assume that x and y are integers:
Count (x, y) { if (y !=1 ) { if (x !=1) { print("*"); Count (x/2, y); } else { y=y-1; Count (1024, y); } } }
The number of times that the print statement is executed by the call Count (1024, 1024) is
#include "stdio.h"
int main()
{
int j = 0;
for ( ; j < 10 ; )
{
if (j < 10)
printf("Abekus", j++);
else
continue;
printf(“Quiz”);
}
return 0;
}
#include <iostream>
using namespace std;
class Rectangle {
int width, height;
public:
void set_values (int,int);
int area () {return width*height;}
};
void Rectangle::set_values (int x, int y) {
width = x;
height = y;
}
int main () {
Rectangle rect, rectb;
rect.set_values (3,4);
rectb.set_values (5,6);
cout << "rect area: " << rect.area() << endl;
cout << "rectb area: " << rectb.area() << endl;
return 0;
}