Explain what is the difference between declaring a variable and defining a variable?
Answer / ss
Declaring variable means
Eg- int a;
Defining variable means we are giving some integer value to that a variable
Eg- a=100;
| Is This Answer Correct ? | 0 Yes | 0 No |
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
What is the purpose of Scanf Print, getchar, putchar, function?
What is null character in c?
Why static variable is used in c?
void main() { int i=5; printf("%d",i+++++i); }
Explain the difference between the local variable and global variable in c?
Expand the following LKB BKL FFG
When should you use a type cast?
What is array in C
Write a c program using for loop in switch case?
Given a number N, product(N) is the product of the digits of N. We can then form a sequence N, product(N), product(product(N))… For example, using 99, we get the sequence 99, 99 = 81, 81 = 8. Input Format: A single integer N Output Format: A single integer which is the number of steps after which a single digit number occurs in the sequence. Sample Test Cases: Input #00: 99 Output #00: 2 Explanation: Step - 1 : 9 * 9 = 81 Step - 2 : 8 * 1 = 8 There are 2 steps to get to this single digit number. Input #01: 1137638147
how to find sum of 5 digits in C?