C program to take user input to an array and show its content.
In this program, we take some input to an array and then show its content.
How to access a global variable that has the same name as the local variable in C?
When we have a local variable with the same name as the global variable, we can’t access the value of the global variable as the environment always points to the value of the local variable. For Example: In such a case, we may use ‘extern’ to access the value of a global variable. For Example:
Program to print list of all Happy number between 1 to n.
Happy Number – Replace the number by the sum of the squares of its digits, and repeat the process. At the end, if the number is equals to 1 then it is a Happy Number, or it loops endlessly in a cycle that does not include 1 (if it is not a happy number then…