Home

A C variable cannot start with

A. An alphabet

B. A number

C. A special symbol other than underscore

D. both (b) and (c)

You can do it
  1. Which of the following is allowed in a C Arithmetic instruction
  2. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  3. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  4. The contents of a file opened in 'r+' mode cannot be changed.
  5. Which of the following correctly describes C++ language?
  6. perror( ) function used to ?
  7. gets() and puts() are unformatted I/O functions.
  8. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  9. The-------------------- statement helps immediate exit from any part of the loop
  10. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const…
  11. A recursive function calls itself again and again.
  12. C is a ___ language
  13. Operation between an integer and float always yields a float result.
  14. An array declared as A[100][100] can hold a maximum of 100 elements.
  15. A declaration float a, b; occupies ___ of memory
  16. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  17. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…
  18. It is necessary to initialize the array at the time of declaration.
  19. The default initial value of automatic storage class is 0.
  20. Which of the following is not recommended in a header file?
  21. static variable will not always have assigned value.
  22. ------ is the ternary operator
  23. do-while loop is useful when we want the statements within the loop must be executed
  24. Left shift operator rotates the bits on the left and places them to the right.
  25. # define PI = 8;' is the correct declaration of macros.
  26. Which one of the following is not a fundamental data type in C++
  27. The same variable names of automatic type can be used in different functions without any conflict.
  28. char *s[10] defines an array of ------------------------
  29. = and = = have the same operation.
  30. Which of the STL containers store the elements contiguously (in adjecent memory locations)?