Which keyword is used to represent identifiers from other programs?
If there is any error while opening a file, fopen will return?
How can you read a character from the keyboard and store it in the variable 'a'?
Which of the following class members cannot be accessed using the direct member access operator?
What happens when a null pointer is converted to a boolean?
What is the output of the following C code?
main()
{
char *p="hey matthew",*p1;
p1=p;
while(*p!='\0') ++*p++;
printf("%s %s",p,p1);
}
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int x = 10, y = 5, z = 5;
int p;
p = x == (y + z);
printf("%d", p);}
}
What will be the output of the following C++ code?
#include <cstdlib>
#include <ctime>
#include <iostream>
using namespace std;
int main()
{
srand((unsigned)time(0));
int ran;
for (int i = 0; i < 2; i++)
{
ran = (rand() % 10) + 1;
cout << ran;
}
}
Which of the following statements about static variables is correct?
Consider the C functions foo and bar given below:
int foo(int val) { int x = 0; while (val > 0) { x = x + foo(val--); } return val; } int bar(int val) { int x = 0; while (val > 0) { x = x + bar(val-1); } return val; }
Invocations of foo(3) and bar(3) will result in:
OnSite
1 Openings
FullTime
Posted 17 days ago