TWITTER.COM/EG1DOTIN
 FACEBOOK.COM/EG1DOTIN
MENU
  • HOME
  • ABOUT
  • APPS
  • BLOGS
  • CONTACT

c

  • c
  • c tutorials
  • c++
  • c++ tutorials

Adding two integer numbers without using plus operator in c

 c |  Admin

Here we have used the concept of boolean algebra. We know that the outputs of half adder is (Sum = A XOR B , Carry = A AND B ) and in the full adder the carry is added to the sum and also in the parallel adder the output carry is shifting in the left side. in c or c++, XOR, AND and Left Shift operations are defined using ^ , &, << operators respectively.

A calendar application using c

 c |  Admin

Here a code prints a calendar for a year specified. The user enters a year for the calendar and the programs prints the calendar in text format. The days are define by integer like (0 = Sun, 1 = Mon,... etc.) and Leap year is defined by 1 and 0 like (0 = no leap year, 1 = leap year).

Recursive function examples using c (Factorial, Fibonacci number, Combination, Permutation and Tower of Hanoi).

 c |  Admin

A recursive function is a function which either calls itself or is in a potential cycle of function calls. Here some simple examples of recursive functions are given like factorial of a number, Fibonacci number series, combination, permutation & tower of Hanoi.

String manipulation using c

 c |  Admin

String manipulation is the action of the fundamental operations on strings, including their creation, concatenation, the extraction of string segments, string matching, their comparison, discovering their length, replacing substrings by other strings. Here we demonstrate some example of string manipulation.

Displaying asterisk (*) for input password using c

 c |  Admin

Here we demonstrate how can we show the asterisk (*) for an input password. It may be used when we are developing an application that has a login form in which we use a user name and password as logging information. For security purpose it is needed to show (*) instead showing the plain text for the password. The source code is given below to show how we can do it using c.

A Strong random password generator using c

 c |  Admin

A random password generator is software program or hardware device that takes input from a random or pseudo-random number generator and automatically generates a password. Random passwords can be generated manually, using simple sources of randomness such as dice or coins, or they can be generated using a computer software program. Here we have a simple program by using it you can generate a strong password of any predefined length. As you increase the length of password, it becomes stronger.
<<Previous1Next>>

A platform for solutions, coding, programming, innovations, innovative ideas, arts, crafting, learning, creativity, research, development and more... Read more

Follow

Contact on Email

      Write Email


© 2023 EG1 | Privacy Policy | Developed By: EG1