download Mastguru Android App

Question Detail

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
Similar Questions :

1. What is true about fputs function

  • write to a file
  • takes two parameters
  • requires a file pointer
  • all of above

2. What is prototype of a function in C

  • It is the return type of a function
  • It is the return data of the function
  • It is declaration of a function
  • It is a datatype

3. total number of keywords in C are

  • 30
  • 32
  • 48
  • 132

4. What is correct order of precedence in C

  • Addition, Division, Modulus
  • Addition, Modulus, Division
  • Multiplication, Substration, Modulus
  • Modulus, Multiplication, Substration

5. 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
Read more from - C Programming Questions Answers - Chapter 1
Post a comment