#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


Please Help Members By Posting Answers For Below Questions

What is 1d array in c?

598


Why should I prototype a function?

632


How important is structure in life?

590


What is table lookup in c?

626


How can you determine the maximum value that a numeric variable can hold?

637






in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

599


What is declaration and definition in c?

523


What is a constant and types of constants in c?

600


What are the modifiers available in c programming language?

738


Why c is a procedural language?

580


How we can insert comments in a c program?

630


What are near, far and huge pointers?

644


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.

679


What are the types of pointers in c?

528


What is strcmp in c?

594