Home

Which of the following is not recommended in a header file?

A. Type definitions (typedefs)

B. Class definitions

C. Function definitions

D. Template definitions

You can do it
  1. = and = = have the same operation.
  2. The contents of a file opened in 'r+' mode cannot be changed.
  3. && and & operators have the same meaning.
  4. An array declared as A[100][100] can hold a maximum of 100 elements.
  5. Which of the following correctly describes C++ language?
  6. The output of the following code is: void main() {int a; int &b = a;a=100; printf("b=%d\ta=%d",…
  7. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const…
  8. A pointer is an indication of the variable to be accessed next.
  9. Which of the following shows the correct hierarchy of arithmetic operations in C
  10. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  11. An array elements are always stored in _________ memory locations.
  12. What will be output if you will compile and execute the following c code?#include int main(){ char c=125;…
  13. the value *(&i) is same as printing the value of address of i.
  14. char *s[10] defines an array of ------------------------
  15. The output of the following code is: void main(){int z, a = 5, b = 3; z = a * 2 + 26 % 3;printf("%d",…
  16. enum helps to create user defined datatype.
  17. Which of the following is not a preprocessor directive
  18. The expression "b = 3 ^ 2;" will evaluate b = 9.
  19. emp name' is a valid variable name.
  20. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  21. ------ is the ternary operator
  22. # define PI = 8;' is the correct declaration of macros.
  23. The output of the following code is: main() { void msg() { printf("HELLO WORLD"); } }
  24. If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
  25. What is right way to Initialization array?
  26. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  27. A C variable cannot start with
  28. Which of the following is not a standard exception built in C++.
  29. The expression (i + j)++ is illegal.
  30. A function to be called must be ended with a----------------