Question Detail

A variable in c

  • must have a valid datatype
  • can't have a name same as keyword
  • must have a name starting with a character
  • All of above
Similar Questions :

1. Difference between calloc() and malloc()

  • calloc() takes a single argument while malloc() needs two arguments
  • malloc() takes a single argument while calloc() needs two arguments
  • malloc() initializes the allocated memory to ZERO
  • calloc() initializes the allocated memory to NULL

2. If include files can be nested

  • Yes
  • No

3. Continue statement used for

  • To continue to the next line of code
  • To stop the current iteration and begin the next iteration from the beginning
  • To handle run time error
  • None of above

4. Structures can be used

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

5. If (*p) and **p is same

  • No
  • Yes
Read more from - C Programming Questions Answers - Chapter 1