#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 The Difference Between Null And Void Pointer?
how could explain about job profile
Difference between malloc() and calloc() function?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What language is windows 1.0 written?
What is #include stdio h and #include conio h?
What does struct node * mean?
Explain Function Pointer?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What is #include stdlib h?
explain what are pointers?
When should structures be passed by values or by references?
Why & is used in c?
What is mean by data types in c?
Is there a built-in function in C that can be used for sorting data?