What will be the output of the following C++ code?
What is the size of an integer (int) data type in C on a 32-bit system?
When does the next sequence point start?
What does the following C statement do?
scanf("4%s",str);
What is the output of the following C code?
#include <stdio.h>
int main()
{
int x = 2;
x = x << 1;
printf("%d", x);
}
Which of the following best describes the programming paradigm of the C language?
What are the two main advantages of function objects over regular function calls?
The fputs() function is used to:
1. Write characters to a file
2. Takes 2 parameters
3. Returns a character
4. Requires a file pointer
What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str("Test string");
for (string::iterator it = str.begin(); it != str.end(); ++it)
cout << *it;
return 0;
}
In the call-by-value method: