#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 getch () for?
Explain what is page thrashing?
What is the meaning of && in c?
What is the argument of a function in c?
Describe the steps to insert data into a singly linked list.
What is realloc in c?
Is javascript based on c?
what is the basis for selection of arrays or pointers as data structure in a program
What is a char c?
What is the purpose of void in c?
List some basic data types in c?
Is this program statement valid? INT = 10.50;
Explain the use of 'auto' keyword
Are c and c++ the same?
Can you define which header file to include at compile time?