C Puzzle Programs, C Tricky Programs – C programs

This section provides bunch of c programming puzzles, that can improve your logical knowledge to solve complex problems with different methods, you will enjoy c sundae here.


Sponsored Links

List of c puzzles programs...

  1. Program to print “Hello C” or any message w/o using “;” in program.
  2. In this program you will learn how to print any string/message (Like Hello World) without using semicolon (;), since we all know that each statement require semicolon to terminate the string. Obviously this program will print message using printf statement, but printf will not be terminated by semicolon in this program, let's enjoy the puzzle/trick

  3. Program to print your name 10 times without using any loop or goto statement.
  4. In this program you will learn how to print any string/message (Like your name) without using any loop statement and goto statement, since we all know when we want to execute a set of statement number of time, loop is required or goto statement is required, but in this program we will do the same without using any loop or goto statement, let's enjoy the puzzle/trick

  5. Program to print “Hello” “C” using if and else statement both.
  6. In this program we will print two messages using if and else both, since we know that at a time either if or else statement can be executed. We are not challenging the concept of c language, but here is a hidden trick by following this trick or do not going beyond the concept of c language if else statement, we will learn how to print messages by using if and else both statement, let's enjoy the puzzle/trick

  7. Program to print source code as program output.
  8. In this program we will learn how to print source code of the program, generally we write program and after execution of program output will display. But in this program instead of program output, program (source code that you have written in same program) will be printed, let's enjoy the puzzle/trick

  9. Program to design LogIn screen, check username and password.
  10. Since this is not a tricky program but little good program for exercise, in this program we will design a login screen with username and password, where username and password will be authenticated with given hard coded username and password. While entering password, password character will display even backspace and delete will work, let's enjoy the puzzle/trick

  11. Program to check whether number is EVEN or ODD without using any arithmetic or relational operators.
  12. In this program we will learn how to check EVEN and ODD numbers without using any arithmetic or relational operator. Since EVEN and ODD can be checked by Modulus (%) operator but we will not this operator to check whether number is EVEN or ODD, we will check EVEN or ODD by a simple trick, let's enjoy the puzzle/trick


Being Updated...