what is the output ?

What is the output if num = 1 ? 

#include <stdio.h>

int main() {

        int i = 1;

        switch(i % 10) {
                case 1 : printf ("one \n");
                case 2 : printf ("two \n");
                case 3 : printf ("three \n");
        }
        return 0;

}

Comments

Popular posts from this blog

RUN JAVA PROJECT IN ANDROID STUDIO

Gradle DSL method not found: 'compile()'

Reverse string using recursion