What kind of object is used to modify sequence algorithms?
What is the output of the following code?
main()
{
char *p;
p="ABEKUS";
printf("%c\n",*&*p);
}
In C++, which system - provided function is called when no handler is provided to deal with an exception?
What will be the output?
#include <stdio.h>
int main()
{
struct xyz{
int a;
};
struct xyz obj1={1};
struct xyz obj2 = obj1;
printf("%d", obj2.a);
obj2.a = 100;
printf("%d", obj1.a);
return 0;
}
#include <iostream>
#include <typeinfo>
using namespace std;
int main ()
{
int * a;
int b;
a = 0; b = 0;
if (typeid(a) != typeid(b))
{
cout << typeid(a).name();
cout << typeid(b).name();
}
return 0;
}
What is the value of p in the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int p;
bool a = true;
bool b = false;
int x = 10;
int y = 5;
p = ((x | y) + (a + b));
cout << p;
return 0;
}
Which line should be inserted in the blank to complete the following dynamic programming implementation of the maximum sub-array sum problem?
What should be the output of this program?
#include "stdio.h"
int main()
{
FILE *fp;
char c[1024];
fp = fopen("test.txt", "r"); // "Kernighan and Ritchie"
c[0] = getc(fp);
fseek(fp, 0, SEEK_END);
fseek(fp, -7L, SEEK_CUR);
fgets(c, 6, fp);
puts(c);
return 0;
}
What is the output of the following C program when the number of rows is 6?
Consider the following C program:
void convert(int n) { if (n < 0) printf(“ % d”, n); else { convert(n / 2); printf(“%d”, n % 2); } }
Which one of the following will happen when the function convert is called with any positive integer n as argument?
OnSite
1 Openings
FullTime
Posted 17 days ago