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. The printf() function retunes which value when an error occurs?
  2. do-while loop is useful when we want the statements within the loop must be executed
  3. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  4. The -------------------------- loop executes at least once.
  5. the value *(&i) is same as printing the value of address of i.
  6. What's wrong? for (int k = 2, k <=12, k++)
  7. What is an array?
  8. Variables declared as register storage type gets stored in CPU registers.
  9. void' is a datatype.
  10. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  11. Which of the following expressions is wrong
  12. The same variable names of automatic type can be used in different functions without any conflict.
  13. The output of the following code is: main() { void msg() { printf("HELLO WORLD"); } }
  14. struct stud{int roll;char name[20];float marks;} *p;What will be the byte size of p?
  15. Which of the following is not an infinite loop
  16. perror( ) function used to ?
  17. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…
  18. In the expression - 'x + y + 3z =20'
  19. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  20. The main() function can call itself recursively.
  21. enum helps to create user defined datatype.
  22. Bitwise operators can operate upon?
  23. Expression 4**3 evaluates to 64.
  24. For 16bit compiler allowable range for integer constants is ______ ?
  25. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  26. The identifier argv[] is a pointer to an array of strings.
  27. What does STL stand for?
  28. A pointer is an indication of the variable to be accessed next.
  29. Which among the following is a unconditional control structure
  30. strcat() function ----------------------- two strings.