#include<stdio.h>
void main()
{
int a [5];
for (i=0; i<=4; i++)
printf(ā%dā ,a[i]);
}
Answer Posted / jayakrishna
here array a is declared but it is not initialised,but int
the printf we are printing values of array a[], so it
displays garbage values & cannot directly write i as
variable we must specify its type.
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is 1d array in c?
Why should I prototype a function?
How important is structure in life?
What is table lookup in c?
How can you determine the maximum value that a numeric variable can hold?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What is declaration and definition in c?
What is a constant and types of constants in c?
What are the modifiers available in c programming language?
Why c is a procedural language?
How we can insert comments in a c program?
What are near, far and huge pointers?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
What are the types of pointers in c?
What is strcmp in c?