switch case what would be the output of the program

c program for egg game

switch case what would be the output of the program main( ) { int k, j = 2 ; switch ( k = j + 1 ) { case 0 : printf ( “\nTailor”) ; case 1 : printf ( “\nTutor”) ; case 2 : printf ( “\nTramp”) ; default : printf ( “\nPure Simple … Read more

tic-tac-toe game in c

C Programming Tutorial

This is a tic-tac-toe game in C Language.  You can this as a mini project in C Language.     #include<stdio.h> #include<conio.h> #include<stdlib.h> #include <windows.h> int board[10] = {2,2,2,2,2,2,2,2,2,2}; int turn = 1,flag = 0; int player,comp; void menu(); void go(int n); void start_game(); void check_draw(); void draw_board(); void player_first(); void put_X_O(char ch,int pos); COORD … Read more

let us C : Start Learning C Programming

C Programming Tutorial

Before we can begin to write serious programs in C, it would be interesting to find out what really is C, how it came into existence and how does it compare with other computer languages. In this chapter we would briefly outline these issues. We will also learn four important aspects of any language are … Read more