Lets write a C program to find Armstrong number or Narcissistic number from 1 to 500 using function.
Problem Statement Write a C program to print out all Armstrong numbers or Narcissistic number between 1 and 500. If sum of cubes of each digit of the number is equal to the number itself, then the number is called an Armstrong number. Hint: Use function / method.
An Armstrong number or Narcissistic number is an n-digit base b number such that the sum of its (base b) digits raised to the power n is the number itself.
https://technotip.com/8429/using-macro-template-in-macro-expansion-c-program/
In this video tutorial lets see how we can make use of a macro template in a macro expansion.
Objective
We define PI in a macro, and then we use PI in expansion of another macro.
We shall also modify the same program to make use of constant M_PI present in math.h library file instead of macro template PI.
Note: M_PI is also a macro inside math.h library file.
C Programming Interview / Viva Q&A List
https://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
https://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=s3bMxi6Isu8
http://technotip.com/6359/discount-on-purchase-c-program/
In this c program, we ask the user to input the price of the item and number of items(quantity) purchased. If the quantity is greater than 999 then we’ll give 10% discount orelse there will be no discount.
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=Af34KD12V_Y
http://technotip.com/6647/triangle-valid-or-not-based-on-angles-c-program/
Three angles of a Triangle are entered through the keyboard, write a C program to check whether the Triangle is valid or not. The Triangle is valid if the sum of all the angles is exactly equal to 180.
C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=io01X2kB66Q
http://technotip.com/3656/color-input-type-html5/
color input type fields expect the user to pick the color from the color pallet. Once the user selects the color it's corresponding hexa-decimal value is being stored in the input field.
HTML5 and CSS3 Video Tutorial List:
http://technotip.com/3451/html5-css3-video-tutorial-list/
...
https://www.youtube.com/watch?v=MiCOVDrVH44
http://technotip.com/6392/c-programming-interview-viva-qa-3-logical-operator/
In this C program we’ve 2 operands and one AND operator(&&). We use Logical NOT Operator to change the true and false conditions inside if statement. Check the source code below and guess the output.
C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=JxPB_JxNyHY
http://technotip.com/3735/basics-of-jade-template-engine-node-js/
Lets learn some of the basics of Jade Template Engine. Jade is the default template engine for Express Web Framework of Node.js Also note that, Jade and Express are open source product of the same company, so go very well with each other!
Node.js Video Tutorial List:
http://technotip.com/3674/node-js-video-tutorial-list/
...
https://www.youtube.com/watch?v=xNoWTLsZbaU
http://technotip.com/6725/c-program-to-print-multiplication-table-using-while-loop/
Lets write a C program to ask the user to input an integer value and then output multiplication table(up to 10) on to the console window.
C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=-OfeGt8QV9s
http://technotip.com/7237/c-program-to-find-special-symbol-or-not-using-conditional-operator/
Using Conditional / Ternary Operator determine, whether a character entered through the keyboard is a Special Symbol or not.
Logic To Find Special Symbol or Not using Conditional Operator
Using Conditional Operator we write the condition, if user entered character is in between or equal to ASCII values 0 – 47 or 58 to 64 or 91 to 96 or greater than or equal to 123. We use Relational Operator and Logical Operators to accomplish the task.
Expected Output for the Input
User Input:
Enter a Character
$
Output:
Character Entered Is a Special Symbol
C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=LDxdmrCRqCU
http://technotip.com/6500/positive-or-negative-or-zero-using-ternary-operator-c-program/
C Program to check whether the user entered integer number is positive, negative or zero using ternary operator or Conditional operator.
Note:
Any number greater than 0 is positive.
Any number less than 0 is negative.
C Programming Interview / Viva Q&A List
http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/
...
https://www.youtube.com/watch?v=gYenZ8rYK8g