What do we return if we use a simple array as an internal container?
What is the output of the following C code?
int main()
{
int x = 'A';
printf("%02X", x);
return 0;
}
What is the other name of compile-time polymorphism?
Is bool a fundamental data type in C++?
What will be the output of the following C program?
#include<stdio.h>
void main()
{
printf("hello");
if(-1)
printf("world!");
}
What is the purpose of the C++ function "showbase"?
Consider the following C function.
int fun (int n) { int x=1, k; if (n==1) return x; for (k=1; k < n; ++k) x = x + fun(k) * fun(n – k); return x; }
The return value of fun(5) is __________.
What is the output of the following C program?
int main()
{
int num=10;
switch(num)
{
}
printf("What is the output of the program?");
}
What is the purpose of the swap() function in the array class?
Consider the following C program.
#include<stdio.h> void mystery(int *ptra, int *ptrb) { int *temp; temp = ptrb; ptrb = ptra; ptra = temp; } int main() { int a=2016, b=0, c=4, d=42; mystery(&a, &b); if (a < c) mystery(&c, &a); mystery(&a, &d); printf("%dn", a); }
The output of the program