# Single Line C Program for Finding The Elder One Among Three

Remember the Ram, Shayam and Ajay program (from the book Let Us C). This one clears many of my confusions about the if-else ledder. But I din;t satisfied with this one because it;s a lengthy one, not because the program is hard but it takes a little more attention for the nesting of if-else. So I thought to make it short. And tried many ways to achieve what I want. And finally I end up my searching when I learnt about the Conditional Operators ( ?,: ). These operators made me act like OMG :o. These operators actually can do many of coding go simple and I shortened many of my programs with the help of these operators.

Take a Look at the Program ►► Continue reading Single Line C Program for Finding The Elder One Among Three

# C Program to Swap Two Numbers Using XORing Operator

Bit-wise operators give a very tremendous way of working on bit. And the program that needs numbers of statements, and simply done on the single line using bit-wise operator.One of the bit-wise operator, The XORing operator (^) provides a way of swapping the values of two variables easily.

Lets see the Program ►► Continue reading C Program to Swap Two Numbers Using XORing Operator

# C Program to Swap Two Numbers Using Pointers

For me pointers are the only reason I love C Programming. It broadens the concept of programming. And as a programmer I use to do programming through pointers mainly, as it eliminates many limitations of the program smartly. We can’t achieve swapping of two numbers without pointers when we are using a function call because every time actual arguments gets copied and being pass to the function, and becomes the formal arguments of that function. Any change in formal argument won’t make the actual arguments change. So cleverly we can pass the addresses as the formal arguments of the variables and can change the values using addresses.

Look at the Program Carefully ►► Continue reading C Program to Swap Two Numbers Using Pointers

# C Program to Convert Fahrenheit Temperature to Celsius

When I just started coding, this was the program which made me to think, I din’t satisfied with the lengthy and complicated one program which I made first, than I went step by step to make it short and more efficient. Simply I use the rule to use less variables as possible as can to make program size short and run faster. I look for the program to eliminate the more variables as can possible. And finally I came up with the short and tricky one with proper format of the output.

Look at the Program Carefully ►► Continue reading C Program to Convert Fahrenheit Temperature to Celsius

# Complete C Program for Addition of Two Integers

Let’s start from the beginning, the addition of integers. I think you surely made this program already but you did’t done this in your program. If you do so, So Congrats!! you are going by the right way. Look at the program below and make out what you forgot to include in your program. And clear that bug. ►►