How many elements does a floating-point number consist of?
Which header file contains the library function getch()?
Which of the following function / type of function cannot be overloaded?
For automatic objects, constructors and destructors are called each time the objects
What will be the output of the following C code?
main()
{
int i=10, j=5;
printf("%d..%d");
printf("\n22\n56");
}
#include
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main() {
char str[] = "Steve jobs";
int val = 65;
char ch = 'A';
cout.width(5);
cout << right << val << endl;
return 0;
}
What is the output of the following program?
void multiply(int *i, int *j)
{
*i = *i * *j;
printf("%d ", *i);
}
void addition(int i, int j)
{
i = i + j;
printf("%d ", i);
}
int main()
{
int i = 10, j = 20;
multiply(&i, &j);
addition(i, j);
}
Is the following statement True or False?
Function parameter x is const-qualified in the function declaration but not in the function definition. Furthermore, parameter x is even written to in the function body. Is this legal?
void foo(int const x); void foo(int x) { x = 42; }
Which of the following statements is correct?