Home

perror( ) function used to ?

A. Work same as printf()

B. prints the error message specified by the compiler

C. prints the garbage value assigned by the compiler

D. None of the above

You can do it
  1. What is C Tokens?
  2. The output of the following code is: void main() {int a = 1, b=2; int *ip; ip=&a; b=*ip; printf("%d",…
  3. continue statement is used
  4. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  5. When is std::bad_alloc exception thrown?
  6. When a user defined function is defined in program, then it has to be called at least once from the…
  7. The output of the following code is: void main() {int a; int &b = a;a=100; printf("b=%d\ta=%d",…
  8. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  9. The size of signed integer is ------ bytes.
  10. A C variable cannot start with
  11. Which of the following is not true about preprocessor directives
  12. The output of the following code is: void main() { static int a = 1, b, c;if (a>=2) b=2; c=3;printf("%d\t%d",…
  13. Which of the following is not recommended in a header file?
  14. # define PI = 8;' is the correct declaration of macros.
  15. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  16. static variable will not always have assigned value.
  17. The output of the following code is: void main(){int z, a = 5, b = 3; z = a * 2 + 26 % 3;printf("%d",…
  18. p++ executes faster than p + 1.
  19. Identify the wrong statement
  20. Which escape character can be used to beep from speaker in C?
  21. Which among the following is a unconditional control structure
  22. printf() is not a library function.
  23. Which classes allow primitive types to be accessed as objects?
  24. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  25. The main() function can be called from any other function.
  26. A declaration float a, b; occupies ___ of memory
  27. Left shift operator rotates the bits on the left and places them to the right.
  28. char *s[10] defines an array of ------------------------
  29. The expression 'int j = 6 + 3 % -9;' evaluates to -1.
  30. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}