Home

What will be output if you will compile and execute the following c code?


#include 
#define x 5+2
int main(){
int i;
i=x*x*x;
printf("%d",i);
return 0;
}


A. 27

B. 343

C. 233

D. Compiler Error

You can do it
  1. static variable will not always have assigned value.
  2. The output of the following code is: void main() {int a = 1, b=2; int *ip; ip=&a; b=*ip; printf("%d",…
  3. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  4. Identify the wrong statement
  5. A C variable cannot start with
  6. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  7. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  8. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  9. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  10. Which of the following keyword supports dynamic method resolution?
  11. Nested macros are allowed.
  12. An array elements are always stored in _________ memory locations.
  13. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  14. The-------------------- statement helps immediate exit from any part of the loop
  15. C programming language was developed by
  16. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  17. The expression "int i = j = k = 0;" is invalid.
  18. A function to be called must be ended with a----------------
  19. continue statement is used
  20. The main() function can be called from any other function.
  21. C programs are converted into machine language with the help of
  22. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…
  23. What does STL stand for?
  24. Which of the following language is predecessor to C Programming Language?
  25. Variables declared as register storage type gets stored in CPU registers.
  26. Operation between an integer and float always yields a float result.
  27. What's wrong? for (int k = 2, k <=12, k++)
  28. Which of the following shows the correct hierarchy of arithmetic operations in C
  29. The same variable names of automatic type can be used in different functions without any conflict.
  30. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }