Home

What will be output if you will compile and execute the following c code?
#include 
int main(){
int i=320;
char *ptr=(char *)&i;
printf("%d",*ptr);
return 0;
}

A. 1

B. 64

C. 320

D. Compiler Error

You can do it
  1. No commas or blanks are allowed within an integer or a real constant.
  2. A continue statement causes execution to skip to
  3. There are total ------ numbers of operators in 'C'.
  4. Which of the following is not recommended in a header file?
  5. Which escape character can be used to beep from speaker in C?
  6. fopen() function returns a pointer to the open file.
  7. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  8. Which of the following expressions is wrong
  9. p++ executes faster than p + 1.
  10. What's wrong? while( (i < 10) && (i > 24))
  11. What will be output if you will compile and execute the following c code?#include int main(){ float…
  12. The expression "int i = j = k = 0;" is invalid.
  13. Left shift operator rotates the bits on the left and places them to the right.
  14. For 16bit compiler allowable range for integer constants is ______ ?
  15. The output of the following code is: void main(){int z, a = 5, b = 3; z = a * 2 + 26 % 3;printf("%d",…
  16. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  17. What is an array?
  18. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…
  19. What is C Tokens?
  20. Which among the following is a unconditional control structure
  21. A pointer is an indication of the variable to be accessed next.
  22. Which one of the following is not a valid reserved keyword in C++
  23. strcat() function ----------------------- two strings.
  24. In the expression - 'x + y + 3z =20'
  25. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  26. unsigned char has a range from 0 to ------------
  27. What is right way to Initialization array?
  28. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  29. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const…
  30. Identify the wrong statement