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

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

You can do it
  1. The output of the following code is: #define sqr(x= x*x) main() {int a = 10, b = 5; printf("%d, %d",…
  2. Identify the wrong statement
  3. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…
  4. gets() and puts() are unformatted I/O functions.
  5. The expression (i + j)++ is illegal.
  6. unsigned' is a valid variable name.
  7. The default initial value of automatic storage class is 0.
  8. A function to be called must be ended with a----------------
  9. Which of the following expressions is wrong
  10. The output of the following code is: void main() {int a; int &b = a;a=100; printf("b=%d\ta=%d",…
  11. What is C Tokens?
  12. Operation between an integer and float always yields a float result.
  13. A multidimensional array A[10][9] can store-------- number of elements
  14. Only one break can be used in one loop.
  15. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  16. Which of the following is not an infinite loop
  17. Each pass through a loop is called a/an
  18. struct stud{int roll;char name[20];float marks;} *p;What will be the byte size of p?
  19. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  20. Which of the following is an example of compounded assignment statement?
  21. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  22. do-while loop is useful when we want the statements within the loop must be executed
  23. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  24. Which of the following is the most preferred way of throwing and handling exceptions?
  25. Which of the following is not recommended in a header file?
  26. # define PI = 8;' is the correct declaration of macros.
  27. static variable will not always have assigned value.
  28. Which among the following is a unconditional control structure
  29. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  30. Character data types cannot be declared as unsigned.