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

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

You can do it
  1. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  2. = and = = have the same operation.
  3. Which of the following is allowed in a C Arithmetic instruction
  4. Which header file is essential for using strcmp() function?
  5. What will be output if you will compile and execute the following c code?#include int main(){ float…
  6. Which one of the following is not a valid reserved keyword in C++
  7. Union is used to hold different data at different time.
  8. C programming language was developed by
  9. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  10. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const…
  11. The expression "b = 3 ^ 2;" will evaluate b = 9.
  12. Which classes allow primitive types to be accessed as objects?
  13. What is Keywords?
  14. The same variable names of automatic type can be used in different functions without any conflict.
  15. The output of the following code is: main() { unsigned int a = 10; while (a>=10) { int a; a-- ; }…
  16. Single operations involving entire arrays are permitted in C.
  17. What is C Tokens?
  18. A pointer is an indication of the variable to be accessed next.
  19. static variable will not always have assigned value.
  20. If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
  21. Bitwise operators can operate upon?
  22. When is std::bad_alloc exception thrown?
  23. Identify the wrong statement
  24. perror( ) function used to ?
  25. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  26. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  27. What would be the output of the following program?int x=40;main(){int x=20;printf("%d",x);}
  28. Which of the following is an example of compounded assignment statement?
  29. What is the right way to access value of structure variable book{ price, page }?
  30. The printf() function retunes which value when an error occurs?