Question Detail

Structures can be used

  • to hold different datatypes
  • have pointers to structures
  • to assign to one another
  • all of above
Similar Questions :

1. The first expression in a for loop is

  • Step value of loop
  • Value of the counter variable
  • Any of above
  • None of above

2. Difference between structure and union is

  • We can define functions within structures but not within a union
  • We can define functions within union but not within a structure
  • The way memory is allocated
  • There is no difference

3. To access the members of structure which symbol is used

  • *
  • -
  • ,
  • .

4. If include files can be nested

  • Yes
  • No

5. What is dangling pointer in c

  • if pointer is pointing to a memory location from where variable has been deleted
  • if pointer is assigned to more than one variable
  • if pointer is not defined properly
  • none of above
Read more from - C Programming Questions Answers - Chapter 1