#include<stdio.h>
void main()
{
int a [5];
for (i=0; i<=4; i++)
printf(ā%dā ,a[i]);
}
Answer Posted / tanvi jain
as i is not yet declared,so give an error.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of ?: Operator?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
Between macros and functions,which is better to use and why?
Which is better pointer or array?
Where does the name "C" come from, anyway?
What is main function in c?
Can the size of an array be declared at runtime?
What is a memory leak? How to avoid it?
What are nested functions in c?
Are there any problems with performing mathematical operations on different variable types?
How can I remove the trailing spaces from a string?
Why we use conio h in c?
Explain the use of fflush() function?
What is typedef example?