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. Character data types cannot be declared as unsigned.
  2. The size of signed integer is ------ bytes.
  3. Identify the wrong statement
  4. Which of the following is not a preprocessor directive
  5. && and & operators have the same meaning.
  6. The output of the following code is: void main() {int a = 1, b=2; int *ip; ip=&a; b=*ip; printf("%d",…
  7. Which of the following is an example of compounded assignment statement?
  8. continue statement is used
  9. The expression (i + j)++ is illegal.
  10. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  11. C programs are converted into machine language with the help of
  12. An array declared as A[100][100] can hold a maximum of 100 elements.
  13. In the expression - 'x + y + 3z =20'
  14. C is a ___ language
  15. do-while loop is useful when we want the statements within the loop must be executed
  16. Only one break can be used in one loop.
  17. emp name' is a valid variable name.
  18. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  19. /* The C language./* is a procedural language .*/*/The above statement is valid.
  20. A function to be called must be ended with a----------------
  21. What is Keywords?
  22. No commas or blanks are allowed within an integer or a real constant.
  23. A continue statement causes execution to skip to
  24. Which one of the following is not a fundamental data type in C++
  25. Every if statement can be converted into an equivalent switch statement.
  26. Which of the following keyword supports dynamic method resolution?
  27. When is std::bad_alloc exception thrown?
  28. fopen() function returns a pointer to the open file.
  29. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  30. The main() function can call itself recursively.