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 expression (i + j)++ is illegal.
  2. char *s[10] defines an array of ------------------------
  3. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  4. The value of an enumerated datatype can be read using scanf() function.
  5. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  6. The expression "int i = j = k = 0;" is invalid.
  7. fprintf()function can be used to write into console.
  8. In the expression - 'x + y + 3z =20'
  9. /* The C language./* is a procedural language .*/*/The above statement is valid.
  10. What's wrong? while( (i < 10) && (i > 24))
  11. struct stud{int roll;char name[20];float marks;} *p;What will be the byte size of p?
  12. Single operations involving entire arrays are permitted in C.
  13. An array elements are always stored in _________ memory locations.
  14. ------ is the ternary operator
  15. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  16. Character data types cannot be declared as unsigned.
  17. Which header file is essential for using strcmp() function?
  18. Union is used to hold different data at different time.
  19. The array 'char name[10] can consist of a maximum of 9 characters.
  20. C is a ___ language
  21. A continue statement causes execution to skip to
  22. The size of signed integer is ------ bytes.
  23. What will be output if you will compile and execute the following c code?#include int main(){ char c=125;…
  24. do-while loop is useful when we want the statements within the loop must be executed
  25. A pointer is an indication of the variable to be accessed next.
  26. The output of the following code is: main() { void msg() { printf("HELLO WORLD"); } }
  27. Variables declared as register storage type gets stored in CPU registers.
  28. Which of the following is the most preferred way of throwing and handling exceptions?
  29. The output of the following code is: main() { unsigned int a = 10; while (a>=10) { int a; a-- ; }…
  30. emp name' is a valid variable name.