When should I declare a function?
Answer / Atul Prakash
A function should be declared whenever you have a specific task that needs to be repeated multiple times or when the code becomes too complex and difficult to manage. Declaring functions can help make your code more modular, easier to understand, and maintainable.
| Is This Answer Correct ? | 0 Yes | 0 No |
how to introdu5ce my self in serco
c program to subtract between two numbers without using '-' sign and subtract function.
What is call by value in c?
how can write all 1to 100 prime numbers using for loop,if and break ?
Explain what does the function toupper() do?
Differentiate between functions getch() and getche().
what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year
Write a program of prime number using recursion.
Which header file is essential for using strcmp function?
while initialization of array why we use a[][2] why not a[2][]...?
What is double pointer?
what is real time system?what is the differance between hard and soft real time systems