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

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

You can do it
  1. gets() and puts() are unformatted I/O functions.
  2. A pointer is an indication of the variable to be accessed next.
  3. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  4. Which of the following is allowed in a C Arithmetic instruction
  5. Which one of the following is not a valid reserved keyword in C++
  6. printf() is not a library function.
  7. Which of the following is an example of compounded assignment statement?
  8. = and = = have the same operation.
  9. It is necessary to initialize the array at the time of declaration.
  10. Structures within structures cannot be created.
  11. An array elements are always stored in _________ memory locations.
  12. Which of the following is not an infinite loop
  13. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  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: void main(){int z, a = 5, b = 3; z = a * 2 + 26 % 3;printf("%d",…
  16. A multidimensional array A[10][9] can store-------- number of elements
  17. do-while loop is useful when we want the statements within the loop must be executed
  18. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  19. continue statement is used
  20. C programming language was developed by
  21. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  22. Which of the following is not recommended in a header file?
  23. The function fopen() on failure returns---------------------.
  24. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  25. Which of the following is not true about preprocessor directives
  26. printf("%d", sizeof('2')); will print 2.
  27. A function to be called must be ended with a----------------
  28. The-------------------- statement helps immediate exit from any part of the loop
  29. What will be output if you will compile and execute the following c code?#include int main(){ float…
  30. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…