We study and determine a homotopy type of the moduli space of all generalized Morse functions on d-manifolds for given d. This moduli space is closely connected to the moduli space of all Morse functions studied by Madsen and Weiss and classifying space of the corresponding cobordism category