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. The main() function can be called from any other function.
  2. The output of the following code is: main() { void msg() { printf("HELLO WORLD"); } }
  3. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  4. The output of the following code is: void main(){int z, a = 5, b = 3; z = a * 2 + 26 % 3;printf("%d",…
  5. The function fopen() on failure returns---------------------.
  6. Which of the following shows the correct hierarchy of arithmetic operations in C
  7. What is an array?
  8. What would be the output of the following program?int x=40;main(){int x=20;printf("%d",x);}
  9. fopen() function returns a pointer to the open file.
  10. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  11. A declaration float a, b; occupies ___ of memory
  12. p++ executes faster than p + 1.
  13. Which of the following correctly describes C++ language?
  14. Character data types cannot be declared as unsigned.
  15. Which one of the following is not a fundamental data type in C++
  16. The output of the following code is: #define sqr(x= x*x) main() {int a = 10, b = 5; printf("%d, %d",…
  17. Which of the following language is predecessor to C Programming Language?
  18. What will be output if you will compile and execute the following c code?#include int main(){ char c=125;…
  19. All elements of a structure are allocated contiguous memory locations.
  20. unsigned' is a valid variable name.
  21. What is right way to Initialization array?
  22. Variables declared as register storage type gets stored in CPU registers.
  23. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  24. There are total ------ numbers of operators in 'C'.
  25. 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",…
  26. C programs are converted into machine language with the help of
  27. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  28. What is the right way to access value of structure variable book{ price, page }?
  29. The identifier argv[] is a pointer to an array of strings.
  30. The array 'char name[10] can consist of a maximum of 9 characters.