C language puzzles / tricky (tough) solved 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.

List of c puzzles (tricky) programs

  1. C++ program to keep calculate the sum of the digits of a number until the number is a single digit.
    In this program, we are going to implement logic to find sum of digits until the number is a single digits in C++ programming language. let's enjoy the puzzle/trick
  2. C program to print "Hello C" or any message w/o using ";" in program.
    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. C program to print your name 10 times without using any loop or goto statement.
    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
  4. C program to print "Hello", "C" using if and else statement both.
    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
  5. C program to print source code as program output.
    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
  6. C program to design LogIn screen, check username and password.
    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
  7. C program to check whether number is EVEN or ODD, without using any arithmetic or relational operators.
    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

C standard library functions example programs...

Advance C programs

  1. C program to print character without using format specifiers.
  2. C program to find Binary Addition and Binary Subtraction.
  3. C program to print weekday of given date.
  4. gotoxy(),clrscr(),getch(),getche() for GCC, Linux.

All Advance C Programs...


Top searched programs...

Here is the list of most important/useful programs searched on the web.

  1. First C program to print "Hello World".
  2. C program to find factorial of a number.
  3. C program to swap two numbers without using third variable.
  4. C program to check whether a number if Armstrong or not.
  5. C program to check whether a number if Even or Odd.
  6. C program to print all leap years from 1 to N.
  7. C program to calculate employee gross salary.
  8. C Program to print tables of numbers from 1 to 20.
  9. C program to print star/pyramid series.
  10. C program to convert temperature from Celsius to Fahrenheit and vice versa.
  11. C program to convert number from Decimal to Binary.
  12. C program to convert number from Binary to Decimal.
  13. C program to print ASCII Table.
  14. C program to get and set current system date and time.
  15. C program to run dos command.



Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.