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. unsigned' is a valid variable name.
  2. When a user defined function is defined in program, then it has to be called at least once from the…
  3. printf("%d", sizeof('2')); will print 2.
  4. A recursive function calls itself again and again.
  5. The default initial value of automatic storage class is 0.
  6. Expression 4**3 evaluates to 64.
  7. What is right way to Initialization array?
  8. No commas or blanks are allowed within an integer or a real constant.
  9. Identify the wrong statement
  10. A continue statement causes execution to skip to
  11. Which of the following correctly describes C++ language?
  12. It is necessary to initialize the array at the time of declaration.
  13. All macro substitutions in a program are done before compilation of the program.
  14. The output of the following code is: void main() {int a; int &b = a;a=100; printf("b=%d\ta=%d",…
  15. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  16. Bitwise operators can operate upon?
  17. perror( ) function used to ?
  18. Structures within structures cannot be created.
  19. p++ executes faster than p + 1.
  20. What will be output if you will compile and execute the following c code?#include int main(){ float…
  21. && and & operators have the same meaning.
  22. The value of an enumerated datatype can be read using scanf() function.
  23. gets() and puts() are unformatted I/O functions.
  24. C is a ___ language
  25. What is C Tokens?
  26. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  27. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…
  28. Each pass through a loop is called a/an
  29. fopen() function returns a pointer to the open file.
  30. ------ is the ternary operator