What is the return type of getchar()?
Identify the output of the following C code:
Which will be used with physical devices to interact from C++ program?
What will be the capacity of the vector after 10 is pushed into the vector in the following C++ code?
What will be the output of the following C++ code?
#includeusing namespace std; int main() { int a = 7, b = 4, c; c = (a > b) ? a : b; cout << c; return 0; }
Why is a reference not the same as a pointer?
#include <iostream>
#include <functional>
#include <algorithm>
using namespace std;
int main ()
{
int numbers[] = {3, -4, -5};
transform ( numbers, numbers + 3, numbers, negate<int>() );
for (int i = 0; i < 3; i++)
cout << numbers[i] << " ";
}
What is the output of the following C program?
void main()
{
int f=1,i=0,j=4;
char *x="CYBER", *y="REBYC";
while(j)
if(x[i++]!=y[j--])
f=0;
(f>0?printf("EQUAL !"):printf("NOT EQUAL !"))?printf("THIS IS TRUE"):
printf("IT IS WRONG");
}
What is the output of the following C++ code?
1. #include <iostream>
2. using namespace std;
3. int main()
4. {
5. // https://app.abekus.com/l/answer
6. for (int i = 0; i < 5; i++)
7. {
8. cout << "Thank you Abekus" << endl;
9. }
10. return 0;
11. }
What is an lvalue?