Home

The output of the following code is:
void main() 
{
float a;
int x = 10, y = 3; a = x / y;
printf("%f", a); }

A. 3.999999

B. Error

C. 3

D. 3.000000

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

You can do it
  1. The contents of a file opened in 'r+' mode cannot be changed.
  2. No commas or blanks are allowed within an integer or a real constant.
  3. Bitwise operators can operate upon?
  4. Every if statement can be converted into an equivalent switch statement.
  5. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  6. If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
  7. char *s[10] defines an array of ------------------------
  8. struct stud{int roll;char name[20];float marks;} *p;What will be the byte size of p?
  9. What is an array?
  10. The value of an enumerated datatype can be read using scanf() function.
  11. Which escape character can be used to beep from speaker in C?
  12. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  13. Which of the following is the most preferred way of throwing and handling exceptions?
  14. An array declared as A[100][100] can hold a maximum of 100 elements.
  15. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  16. Which of the following expressions is wrong
  17. p++ executes faster than p + 1.
  18. C programming language was developed by
  19. Which of the following is not a preprocessor directive
  20. The size of signed integer is ------ bytes.
  21. Single operations involving entire arrays are permitted in C.
  22. The output of the following code is: main() { void msg() { printf("HELLO WORLD"); } }
  23. perror( ) function used to ?
  24. strcat() function ----------------------- two strings.
  25. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  26. It is necessary to initialize the array at the time of declaration.
  27. All macro substitutions in a program are done before compilation of the program.
  28. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…
  29. do-while loop is useful when we want the statements within the loop must be executed
  30. The default initial value of automatic storage class is 0.