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 } ;

You can do it
  1. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…
  2. It is necessary to initialize the array at the time of declaration.
  3. Which of the following is allowed in a C Arithmetic instruction
  4. Which of the following is not recommended in a header file?
  5. # define PI = 8;' is the correct declaration of macros.
  6. A multidimensional array A[10][9] can store-------- number of elements
  7. Which of the following expressions is wrong
  8. All elements of a structure are allocated contiguous memory locations.
  9. What is an array?
  10. The main() function can call itself recursively.
  11. The output of the following code is: void main(){int z, a = 5, b = 3; z = a * 2 + 26 % 3;printf("%d",…
  12. Which of the following is not a preprocessor directive
  13. What is Keywords?
  14. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  15. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  16. Which of the following is not a standard exception built in C++.
  17. The expression "b = 3 ^ 2;" will evaluate b = 9.
  18. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  19. /* The C language./* is a procedural language .*/*/The above statement is valid.
  20. The output of the following code is: main() { unsigned int a = 10; while (a>=10) { int a; a-- ; }…
  21. Which of the following correctly describes C++ language?
  22. Which of the following is the most preferred way of throwing and handling exceptions?
  23. C programming language was developed by
  24. ------ is the ternary operator
  25. Which escape character can be used to beep from speaker in C?
  26. A declaration float a, b; occupies ___ of memory
  27. Which of the following shows the correct hierarchy of arithmetic operations in C
  28. No commas or blanks are allowed within an integer or a real constant.
  29. unsigned char has a range from 0 to ------------
  30. Which of the STL containers store the elements contiguously (in adjecent memory locations)?