Home

What is right way to Initialization array?

A. int num[6] = { 2, 4, 12, 5, 45, 5 } ;

B. int n{} = { 2, 4, 12, 5, 45, 5 } ;

C. int n{6} = { 2< 4< 12 } ;

D. int n(6) = { 2, 4, 12, 5, 45, 5 } ;

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. do-while loop is useful when we want the statements within the loop must be executed
  2. Every if statement can be converted into an equivalent switch statement.
  3. && and & operators have the same meaning.
  4. The array 'char name[10] can consist of a maximum of 9 characters.
  5. The output of the following code is: void main() {int a; int &b = a;a=100; printf("b=%d\ta=%d",…
  6. Which of the following is not a preprocessor directive
  7. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  8. Which of the following is not a standard exception built in C++.
  9. The main() function can be called from any other function.
  10. Which of the following language is predecessor to C Programming Language?
  11. The output of the following code is: #define sqr(x= x*x) main() {int a = 10, b = 5; printf("%d, %d",…
  12. Identify the wrong statement
  13. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  14. strcat() function ----------------------- two strings.
  15. A function to be called must be ended with a----------------
  16. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  17. The expression (i + j)++ is illegal.
  18. Which of the following is not true about preprocessor directives
  19. When a user defined function is defined in program, then it has to be called at least once from the…
  20. Which classes allow primitive types to be accessed as objects?
  21. # define PI = 8;' is the correct declaration of macros.
  22. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  23. The size of signed integer is ------ bytes.
  24. C is a ___ language
  25. fopen() function returns a pointer to the open file.
  26. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  27. static variable will not always have assigned value.
  28. A C variable cannot start with
  29. Bitwise operators can operate upon?
  30. perror( ) function used to ?