The ones who are crazy enough to think they can change the world are the ones who do.
- Steve Jobs

C Star Patterns

Why Star Pattern

In most of the MNC interview questions such as in Zoho interview questions, IVTL Infoview interview questions, Amazon interview questions, Google interview questions, Infosys interview questions and even in Voonik interview questions, we come across star pattern questions with a probability of 1:5. We provide you a most commonly asked star pattern question for your interview preparation using C programming.

We challenge you, the programmer to do all the following star pattern programs using c programming

Hollow Square Star Pattern

*****
*   *
*   *
*   *
*****

Rhombus Star Pattern

     *****
    *****
   *****
  *****
 *****

Hollow Rhombus Star Pattern

    *****
   *   *
  *   *
 *   *
*****

Hollow Pyramid Star Pattern

    *
   * *
  *   *
 *     *
*********

Inverted Hollow Pyramid Star Pattern

*********
 *     *
  *   *
   * *
    *

Hollow Right Angle Triangle Star Pattern

*
**
* *
*  *
*****

Mirrored Hollow Right Angle Triangle Star Pattern

    *
   **
  * *
 *  *
*****

C Pyramid Star Pattern

    *
   ***
  *****
 *******
*********

Inverted Pyramid Star Pattern

*********
 *******
  *****
   ***
    *

Mirrored Half Diamond Star Pattern

    *
   **
  ***
 ****
*****
 ****
  ***
   **
    *

Half Diamond Star Pattern

*
**
***
****
*****
****
***
**
*

Right Angle Triangle Star Pattern

*
**
***
****
*****

Mirrored Right Angle Triangle Star Pattern

    *
   **
  ***
 ****
*****

Inverted Right Angle Triangle Star Pattern

*****
****
***
**
*

Reverse Mirror Right Angle Triangle Star Pattern

*****
 ****
  ***
   **
    *

Mirrored Rhombus Star Pattern

*****
 *****
  *****
   *****
    *****    

Mirrored Hollow Rhombus Star Pattern

*****
 *   *
  *   *
   *   *
    *****

Hollow Diamond Star Pattern

    *
   * *
  *   *
 *     *
*       *
 *     *
  *   *
   * *
    *

Report Us

We may make mistakes(spelling, program bug, typing mistake and etc.), So we have this container to collect mistakes. We highly respect your findings.

Report