Ad
  • Default User Avatar

    yes, you can declare both a datatype and a variable at the same time in C, e.g. enum AB { A, B } ab = A; declares a new type enum AB and declares a variable ab of type enum AB with value A